user: Call the 16-bit CreateIconFromResourceEx from LoadIconHandler16.

This commit is contained in:
Alexandre Julliard 2010-02-01 20:36:35 +01:00
parent e474bfe0f3
commit 3d55d1430b
1 changed files with 2 additions and 3 deletions

View File

@ -2614,9 +2614,8 @@ WORD WINAPI GetIconID16( HGLOBAL16 hResource, DWORD resType )
*/
HICON16 WINAPI LoadIconHandler16( HGLOBAL16 hResource, BOOL16 bNew )
{
LPBYTE bits = LockResource16( hResource );
return HICON_16(CreateIconFromResourceEx( bits, 0, TRUE,
bNew ? 0x00030000 : 0x00020000, 0, 0, LR_DEFAULTCOLOR));
return CreateIconFromResourceEx16( LockResource16( hResource ), 0, TRUE,
bNew ? 0x00030000 : 0x00020000, 0, 0, LR_DEFAULTCOLOR );
}