From 6f93bb4fea63813f50db3fbc59743149013d4fd0 Mon Sep 17 00:00:00 2001
From: Eric Pouech <Eric.Pouech@wanadoo.fr>
Date: Fri, 12 May 2000 20:12:13 +0000
Subject: [PATCH] Fixed absolute path to pidl generation.

---
 dlls/shell32/shlfolder.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/shell32/shlfolder.c b/dlls/shell32/shlfolder.c
index 84c30ffbc2a..ea3c06a4ce4 100644
--- a/dlls/shell32/shlfolder.c
+++ b/dlls/shell32/shlfolder.c
@@ -25,6 +25,7 @@
 #include "wine/undocshell.h"
 #include "shell32_main.h"
 #include "shresdef.h"
+#include "shlwapi.h"
 
 #define INITGUID
 #include "initguid.h"
@@ -2120,8 +2121,10 @@ static HRESULT WINAPI ISF_MyComputer_fnParseDisplayName(
 
 	*ppidl = 0;
 	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);
 	  lstrcpynWtoA(szTempA, szElement, lstrlenW(szElement) + 1);
-- 
GitLab