mirror of
https://github.com/reactos/reactos.git
synced 2025-01-06 06:20:13 +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)
|
||||
return E_FAIL;
|
||||
if (ret > 0) {
|
||||
*phiconLarge = hIcons[0];
|
||||
*phiconSmall = hIcons[1];
|
||||
if (phiconLarge)
|
||||
*phiconLarge = hIcons[0];
|
||||
else
|
||||
DestroyIcon(hIcons[0]);
|
||||
if (phiconSmall)
|
||||
*phiconSmall = hIcons[1];
|
||||
else
|
||||
DestroyIcon(hIcons[1]);
|
||||
return S_OK;
|
||||
}
|
||||
return S_FALSE;
|
||||
|
|
Loading…
Reference in a new issue