Load shortcut icon by resource id instead of by icon index.

This commit is contained in:
Ge van Geldorp 2005-11-28 10:59:06 +01:00 committed by Alexandre Julliard
parent bc09238067
commit 0991687d3c
1 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,10 @@ static HICON SIC_OverlayShortcutImage(HICON SourceIcon, BOOL large)
/* search for the shortcut icon only once */
if (s_imgListIdx == -1)
s_imgListIdx = SIC_LoadOverlayIcon(29); /* icon index for IDI_SHELL_SHORTCUT */
s_imgListIdx = SIC_LoadOverlayIcon(- IDI_SHELL_SHORTCUT);
/* FIXME should use icon index 29 instead of the
resource id, but not all icons are present yet
so we can't use icon indices */
if (s_imgListIdx != -1)
{