mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[SHELL32] Use IDI_SHELL_DOCUMENT for broken non-exe icons
CORE-16287
This commit is contained in:
parent
051561ed17
commit
f153b52dbb
1 changed files with 4 additions and 1 deletions
|
@ -321,7 +321,10 @@ HRESULT CFSExtractIcon_CreateInstance(IShellFolder * psf, LPCITEMIDLIST pidl, RE
|
|||
if (ret <= 0)
|
||||
{
|
||||
StringCbCopyW(wTemp, sizeof(wTemp), swShell32Name);
|
||||
icon_idx = -IDI_SHELL_EXE;
|
||||
if (lstrcmpiW(pExtension, L".exe") == 0 || lstrcmpiW(pExtension, L".scr") == 0)
|
||||
icon_idx = -IDI_SHELL_EXE;
|
||||
else
|
||||
icon_idx = -IDI_SHELL_DOCUMENT;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue