mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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
1 changed files with 6 additions and 5 deletions
|
@ -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 @@ SH_ShowPropertiesDialog(WCHAR *lpf, LPCITEMIDLIST pidlFolder, LPCITEMIDLIST *api
|
|||
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, '\\');
|
||||
|
||||
|
|
Loading…
Reference in a new issue