Commit 6f93bb4f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fixed absolute path to pidl generation.

parent 70eabded
...@@ -25,6 +25,7 @@ ...@@ -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"
...@@ -2120,8 +2121,10 @@ static HRESULT WINAPI ISF_MyComputer_fnParseDisplayName( ...@@ -2120,8 +2121,10 @@ 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment