mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
GetDetailsOf does not support column flags (#5755)
GetDetailsOf does not support the column flags used by CompareIDs. As a side effect, also fixes LPARAM to UINT truncation on 64-bit.
This commit is contained in:
parent
6528ab8fcb
commit
34066e475a
1 changed files with 3 additions and 2 deletions
|
@ -241,8 +241,9 @@ HRESULT SHELL32_CompareDetails(IShellFolder2* isf, LPARAM lParam, LPCITEMIDLIST
|
||||||
SHELLDETAILS sd;
|
SHELLDETAILS sd;
|
||||||
WCHAR wszItem1[MAX_PATH], wszItem2[MAX_PATH];
|
WCHAR wszItem1[MAX_PATH], wszItem2[MAX_PATH];
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
UINT col = LOWORD(lParam); // Column index without SHCIDS_* flags
|
||||||
|
|
||||||
hres = isf->GetDetailsOf(pidl1, lParam, &sd);
|
hres = isf->GetDetailsOf(pidl1, col, &sd);
|
||||||
if (FAILED(hres))
|
if (FAILED(hres))
|
||||||
return MAKE_COMPARE_HRESULT(1);
|
return MAKE_COMPARE_HRESULT(1);
|
||||||
|
|
||||||
|
@ -250,7 +251,7 @@ HRESULT SHELL32_CompareDetails(IShellFolder2* isf, LPARAM lParam, LPCITEMIDLIST
|
||||||
if (FAILED(hres))
|
if (FAILED(hres))
|
||||||
return MAKE_COMPARE_HRESULT(1);
|
return MAKE_COMPARE_HRESULT(1);
|
||||||
|
|
||||||
hres = isf->GetDetailsOf(pidl2, lParam, &sd);
|
hres = isf->GetDetailsOf(pidl2, col, &sd);
|
||||||
if (FAILED(hres))
|
if (FAILED(hres))
|
||||||
return MAKE_COMPARE_HRESULT(1);
|
return MAKE_COMPARE_HRESULT(1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue