Commit 76f02eeb authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

user32: Directly use NtUserGetIconInfo in GetIconInfo.

parent 5b4a57dc
......@@ -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 );
}
/**********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment