Commit 46187022 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Small fixes.

parent 2fa281f9
...@@ -568,10 +568,8 @@ static HRESULT WINAPI IShellFolder_fnCompareIDs( ...@@ -568,10 +568,8 @@ static HRESULT WINAPI IShellFolder_fnCompareIDs(
return 1; return 1;
/* get the last item in each list */ /* get the last item in each list */
while((ILGetNext(pidlTemp1))->mkid.cb) pidlTemp1 = ILFindLastID(pidlTemp1);
pidlTemp1 = ILGetNext(pidlTemp1); pidlTemp2 = ILFindLastID(pidlTemp2);
while((ILGetNext(pidlTemp2))->mkid.cb)
pidlTemp2 = ILGetNext(pidlTemp2);
/* at This point, both pidlTemp1 and pidlTemp2 point to the last item in the list */ /* at This point, both pidlTemp1 and pidlTemp2 point to the last item in the list */
if(_ILIsValue(pidlTemp1) != _ILIsValue(pidlTemp2)) if(_ILIsValue(pidlTemp1) != _ILIsValue(pidlTemp2))
...@@ -582,14 +580,14 @@ static HRESULT WINAPI IShellFolder_fnCompareIDs( ...@@ -582,14 +580,14 @@ static HRESULT WINAPI IShellFolder_fnCompareIDs(
_ILGetDrive( pidl1,szString1,sizeof(szString1)); _ILGetDrive( pidl1,szString1,sizeof(szString1));
_ILGetDrive( pidl2,szString2,sizeof(szString2)); _ILGetDrive( pidl2,szString2,sizeof(szString2));
nReturn = strcasecmp(szString2, szString1); nReturn = strcasecmp(szString1, szString2);
if(nReturn) if(nReturn)
return nReturn; return nReturn;
_ILGetFolderText( pidl1,szString1,sizeof(szString1)); _ILGetFolderText( pidl1,szString1,sizeof(szString1));
_ILGetFolderText( pidl2,szString2,sizeof(szString2)); _ILGetFolderText( pidl2,szString2,sizeof(szString2));
nReturn = strcasecmp(szString2, szString1); nReturn = strcasecmp(szString1, szString2);
if(nReturn) if(nReturn)
return nReturn; return nReturn;
......
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