ISF_MyComputer_fnParseDisplayName()
Martin Fuchs
martin-fuchs at gmx.net
Tue Apr 13 15:56:09 CDT 2004
Changelog:
make drive letters in PIDLs always uppercase to enable PIDL comparison
Index: shfldr_mycomp.c
===================================================================
RCS file: /CVS/ReactOS/reactos/lib/shell32/shfldr_mycomp.c,v
retrieving revision 1.10
diff -u -p -d -r1.10 shfldr_mycomp.c
--- shfldr_mycomp.c 11 Apr 2004 13:24:29 -0000 1.10
+++ shfldr_mycomp.c 13 Apr 2004 20:45:39 -0000
@@ -217,6 +217,7 @@ ISF_MyComputer_fnParseDisplayName (IShel
/* do we have an absolute path name ? */
else if (PathGetDriveNumberW (lpszDisplayName) >= 0 && lpszDisplayName[2] == (WCHAR) '\\') {
szNext = GetNextElementW (lpszDisplayName, szElement, MAX_PATH);
+ szElement[0] = toupper(szElement[0]); /* make drive letter uppercase to enable PIDL comparison */
WideCharToMultiByte (CP_ACP, 0, szElement, -1, szTempA, MAX_PATH, NULL, NULL);
pidlTemp = _ILCreateDrive (szTempA);
}
More information about the wine-patches
mailing list