mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
- Sync SHDefExtractIconW with Wine. Fixes crash at shelllink test
svn path=/trunk/; revision=42058
This commit is contained in:
parent
91f79593a7
commit
100a69c0f3
1 changed files with 8 additions and 2 deletions
|
@ -884,8 +884,14 @@ HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags,
|
||||||
if (ret == 0xFFFFFFFF)
|
if (ret == 0xFFFFFFFF)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
*phiconLarge = hIcons[0];
|
if (phiconLarge)
|
||||||
*phiconSmall = hIcons[1];
|
*phiconLarge = hIcons[0];
|
||||||
|
else
|
||||||
|
DestroyIcon(hIcons[0]);
|
||||||
|
if (phiconSmall)
|
||||||
|
*phiconSmall = hIcons[1];
|
||||||
|
else
|
||||||
|
DestroyIcon(hIcons[1]);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
return S_FALSE;
|
return S_FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue