Commit c24326b8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

user32: Use GetIconInfo in CopyIcon.

parent 76f02eeb
......@@ -1632,11 +1632,10 @@ HICON WINAPI CreateIcon( HINSTANCE instance, int width, int height, BYTE planes,
*/
HICON WINAPI CopyIcon( HICON icon )
{
ICONINFOEXW info;
ICONINFO info;
HICON res;
info.cbSize = sizeof(info);
if (!GetIconInfoExW( icon, &info ))
if (!GetIconInfo( icon, &info ))
return NULL;
res = CopyImage( icon, info.fIcon ? IMAGE_ICON : IMAGE_CURSOR, 0, 0, 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