user32: Directly use NtUserGetIconInfo in GetIconInfo.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5b4a57dcc8
commit
76f02eeb12
|
@ -1815,18 +1815,9 @@ HCURSOR WINAPI GetCursorFrameInfo( HCURSOR handle, DWORD reserved, DWORD istep,
|
|||
/**********************************************************************
|
||||
* GetIconInfo (USER32.@)
|
||||
*/
|
||||
BOOL WINAPI GetIconInfo(HICON hIcon, PICONINFO iconinfo)
|
||||
BOOL WINAPI GetIconInfo( HICON icon, ICONINFO *info )
|
||||
{
|
||||
ICONINFOEXW infoW;
|
||||
|
||||
infoW.cbSize = sizeof(infoW);
|
||||
if (!GetIconInfoExW( hIcon, &infoW )) return FALSE;
|
||||
iconinfo->fIcon = infoW.fIcon;
|
||||
iconinfo->xHotspot = infoW.xHotspot;
|
||||
iconinfo->yHotspot = infoW.yHotspot;
|
||||
iconinfo->hbmColor = infoW.hbmColor;
|
||||
iconinfo->hbmMask = infoW.hbmMask;
|
||||
return TRUE;
|
||||
return NtUserGetIconInfo( icon, info, NULL, NULL, NULL, 0 );
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
|
Loading…
Reference in New Issue