Author: janderwald
Date: Mon Oct 17 16:51:46 2011
New Revision: 54182
URL:
http://svn.reactos.org/svn/reactos?rev=54182&view=rev
Log:
[SHELL32]
- Check first it the path is a drive path
- Fixes launching drive property dialog when clicked in the shell view area
Modified:
trunk/reactos/dll/win32/shell32/fprop.cpp
Modified: trunk/reactos/dll/win32/shell32/fprop.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/fprop.cp…
==============================================================================
--- trunk/reactos/dll/win32/shell32/fprop.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/fprop.cpp [iso-8859-1] Mon Oct 17 16:51:46 2011
@@ -20,7 +20,7 @@
#include <precomp.h>
-WINE_DEFAULT_DEBUG_CHANNEL(shell);
+WINE_DEFAULT_DEBUG_CHANNEL(shell1);
#define MAX_PROPERTY_SHEET_PAGE 32
@@ -895,15 +895,16 @@
wFileName[wLength-1] = L'\0';
}
+ if (PathIsRootW(wFileName))
+ {
+ return SH_ShowDriveProperties(wFileName, pidlFolder, apidl);
+ }
+
if (PathIsDirectoryW(wFileName))
{
return SH_ShowFolderProperties(wFileName, pidlFolder, apidl);
}
- if (wcslen(wFileName) == 3)
- {
- return SH_ShowDriveProperties(wFileName, pidlFolder, apidl);
- }
pFileName = wcsrchr(wFileName, '\\');