diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-09-09 00:19:02 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-09-09 00:55:09 +0400 |
commit | faaba813b7fd8c39aa05bc85893e0717c769a136 (patch) | |
tree | 10a649cdbeac496c0d9fdc99401d32dae340c674 /src | |
parent | 54bc05cc100bb0d408edb293e8fcb4ddf95f83ef (diff) |
Properties dialog: Disable the "Explore to" feature when the file isn't local.
This commit fixes #3440.
Diffstat (limited to 'src')
-rw-r--r-- | src/DSUtil/WinAPIUtils.cpp | 2 | ||||
-rw-r--r-- | src/mpc-hc/PPageFileInfoClip.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/DSUtil/WinAPIUtils.cpp b/src/DSUtil/WinAPIUtils.cpp index c13f3f760..19b0f06d8 100644 --- a/src/DSUtil/WinAPIUtils.cpp +++ b/src/DSUtil/WinAPIUtils.cpp @@ -258,7 +258,7 @@ bool ExploreToFile(LPCTSTR path) bool success = false;
PIDLIST_ABSOLUTE pidl;
- if (SHParseDisplayName(path, nullptr, &pidl, 0, nullptr) == S_OK) {
+ if (FileExists(path) && SHParseDisplayName(path, nullptr, &pidl, 0, nullptr) == S_OK) {
success = SUCCEEDED(SHOpenFolderAndSelectItems(pidl, 0, nullptr, 0));
CoTaskMemFree(pidl);
}
diff --git a/src/mpc-hc/PPageFileInfoClip.cpp b/src/mpc-hc/PPageFileInfoClip.cpp index f148c8f0a..ea0bebeae 100644 --- a/src/mpc-hc/PPageFileInfoClip.cpp +++ b/src/mpc-hc/PPageFileInfoClip.cpp @@ -171,7 +171,9 @@ BOOL CPPageFileInfoClip::OnInitDialog() m_tooltip.SetDelayTime(TTDT_AUTOPOP, 2500);
m_tooltip.SetDelayTime(TTDT_RESHOW, 0);
- m_tooltip.AddTool(&m_location, IDS_TOOLTIP_EXPLORE_TO_FILE);
+ if (FileExists(m_path)) {
+ m_tooltip.AddTool(&m_location, IDS_TOOLTIP_EXPLORE_TO_FILE);
+ }
UpdateData(FALSE);
|