Commit 7bbcc766 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

user32: Pass num_steps=0 to alloc_icon_handle if is_ani=FALSE.

parent 9c750bb9
......@@ -939,7 +939,7 @@ done:
HeapFree( GetProcessHeap(), 0, bmi_copy );
if (ret)
hObj = alloc_icon_handle( FALSE, 1 );
hObj = alloc_icon_handle( FALSE, 0 );
if (hObj)
{
struct cursoricon_object *info = get_icon_ptr( hObj );
......@@ -1575,7 +1575,7 @@ HICON WINAPI CopyIcon( HICON hIcon )
SetLastError( ERROR_INVALID_CURSOR_HANDLE );
return 0;
}
if ((hNew = alloc_icon_handle( FALSE, 1 )))
if ((hNew = alloc_icon_handle( FALSE, 0 )))
{
struct cursoricon_frame *frameOld, *frameNew;
......@@ -2181,7 +2181,7 @@ HICON WINAPI CreateIconIndirect(PICONINFO iconinfo)
DeleteDC( hdc );
hObj = alloc_icon_handle( FALSE, 1 );
hObj = alloc_icon_handle( FALSE, 0 );
if (hObj)
{
struct cursoricon_object *info = get_icon_ptr( hObj );
......
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