[SHELL32] Use IDI_SHELL_DOCUMENT for broken non-exe icons

CORE-16287
This commit is contained in:
Katayama Hirofumi MZ 2021-12-24 02:47:31 +09:00
parent 051561ed17
commit f153b52dbb

View file

@ -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;
}
}