From 76f02eeb12734a27309680b9b25f8f7b52c0e5ab Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Wed, 23 Feb 2022 13:40:41 +0100 Subject: [PATCH] user32: Directly use NtUserGetIconInfo in GetIconInfo. Signed-off-by: Jacek Caban Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/user32/cursoricon.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index 6e735dcd065..d8a35ee7b6e 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -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 ); } /**********************************************************************