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:
Jacek Caban 2022-02-23 13:40:41 +01:00 committed by Alexandre Julliard
parent 5b4a57dcc8
commit 76f02eeb12
1 changed files with 2 additions and 11 deletions

View File

@ -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 );
}
/**********************************************************************