Fixed absolute path to pidl generation.
This commit is contained in:
parent
70eabdedd5
commit
6f93bb4fea
|
@ -25,6 +25,7 @@
|
||||||
#include "wine/undocshell.h"
|
#include "wine/undocshell.h"
|
||||||
#include "shell32_main.h"
|
#include "shell32_main.h"
|
||||||
#include "shresdef.h"
|
#include "shresdef.h"
|
||||||
|
#include "shlwapi.h"
|
||||||
|
|
||||||
#define INITGUID
|
#define INITGUID
|
||||||
#include "initguid.h"
|
#include "initguid.h"
|
||||||
|
@ -2121,7 +2122,9 @@ static HRESULT WINAPI ISF_MyComputer_fnParseDisplayName(
|
||||||
*ppidl = 0;
|
*ppidl = 0;
|
||||||
if (pchEaten) *pchEaten = 0; /* strange but like the original */
|
if (pchEaten) *pchEaten = 0; /* strange but like the original */
|
||||||
|
|
||||||
if (PathIsRootW(lpszDisplayName))
|
/* do we have an absolute path name ? */
|
||||||
|
if (PathGetDriveNumberW(lpszDisplayName) >= 0 &&
|
||||||
|
lpszDisplayName[2] == (WCHAR)'\\')
|
||||||
{
|
{
|
||||||
szNext = GetNextElementW(lpszDisplayName, szElement, MAX_PATH);
|
szNext = GetNextElementW(lpszDisplayName, szElement, MAX_PATH);
|
||||||
lstrcpynWtoA(szTempA, szElement, lstrlenW(szElement) + 1);
|
lstrcpynWtoA(szTempA, szElement, lstrlenW(szElement) + 1);
|
||||||
|
|
Loading…
Reference in New Issue