mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[0.4.11][SHELL32] Fix regression CORE-12364 explorer-sorting
The sorting in explorer broke by
SVN r73128 == git 24fcf531e7
Thanks to Doug Lyons for providing this patch.
This commit is contained in:
parent
efe3c7dfcf
commit
bf5780867b
1 changed files with 9 additions and 1 deletions
|
@ -455,7 +455,15 @@ HRESULT WINAPI CRegFolder::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1, P
|
|||
}
|
||||
|
||||
/* Guid folders come first compared to everything else */
|
||||
/* And Drives come before folders in My Computer */
|
||||
if (_ILIsMyComputer(m_pidlRoot))
|
||||
{
|
||||
return MAKE_COMPARE_HRESULT(clsid1 ? 1 : -1);
|
||||
}
|
||||
else
|
||||
{
|
||||
return MAKE_COMPARE_HRESULT(clsid1 ? -1 : 1);
|
||||
}
|
||||
}
|
||||
|
||||
HRESULT WINAPI CRegFolder::CreateViewObject(HWND hwndOwner, REFIID riid, LPVOID *ppvOut)
|
||||
|
|
Loading…
Reference in a new issue