mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[SHELL32]
- Check first it the path is a drive path - Fixes launching drive property dialog when clicked in the shell view area svn path=/trunk/; revision=54182
This commit is contained in:
parent
c935929442
commit
3768a08bef
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
#include <precomp.h>
|
#include <precomp.h>
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(shell);
|
WINE_DEFAULT_DEBUG_CHANNEL(shell1);
|
||||||
|
|
||||||
#define MAX_PROPERTY_SHEET_PAGE 32
|
#define MAX_PROPERTY_SHEET_PAGE 32
|
||||||
|
|
||||||
|
@ -895,15 +895,16 @@ SH_ShowPropertiesDialog(WCHAR *lpf, LPCITEMIDLIST pidlFolder, LPCITEMIDLIST *api
|
||||||
wFileName[wLength-1] = L'\0';
|
wFileName[wLength-1] = L'\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (PathIsRootW(wFileName))
|
||||||
|
{
|
||||||
|
return SH_ShowDriveProperties(wFileName, pidlFolder, apidl);
|
||||||
|
}
|
||||||
|
|
||||||
if (PathIsDirectoryW(wFileName))
|
if (PathIsDirectoryW(wFileName))
|
||||||
{
|
{
|
||||||
return SH_ShowFolderProperties(wFileName, pidlFolder, apidl);
|
return SH_ShowFolderProperties(wFileName, pidlFolder, apidl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wcslen(wFileName) == 3)
|
|
||||||
{
|
|
||||||
return SH_ShowDriveProperties(wFileName, pidlFolder, apidl);
|
|
||||||
}
|
|
||||||
|
|
||||||
pFileName = wcsrchr(wFileName, '\\');
|
pFileName = wcsrchr(wFileName, '\\');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue