mirror of
https://github.com/reactos/reactos.git
synced 2026-06-02 09:20:43 +08:00
[SHELL32] Use IDI_SHELL_DOCUMENT for broken non-exe icons
CORE-16287
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user