Alexandre Julliard : user: Call the 16-bit CreateIconFromResourceEx from LoadIconHandler16.
Module: wine Branch: master Commit: 3d55d1430bbfcc34a00498667224914876fa9e09 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d55d1430bbfcc34a004986672... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Feb 1 20:36:35 2010 +0100 user: Call the 16-bit CreateIconFromResourceEx from LoadIconHandler16. --- dlls/user.exe16/user.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/user.exe16/user.c b/dlls/user.exe16/user.c index 7d60bac..d415f78 100644 --- a/dlls/user.exe16/user.c +++ b/dlls/user.exe16/user.c @@ -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 ); }
participants (1)
-
Alexandre Julliard