mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 17:01:28 +00:00
[SHELL32] Use IDI_SHELL_DOCUMENT for broken non-exe icons
CORE-16287
This commit is contained in:
parent
051561ed17
commit
f153b52dbb
|
@ -321,7 +321,10 @@ HRESULT CFSExtractIcon_CreateInstance(IShellFolder * psf, LPCITEMIDLIST pidl, RE
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
{
|
{
|
||||||
StringCbCopyW(wTemp, sizeof(wTemp), swShell32Name);
|
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