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

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
This commit is contained in:
Alex Henrie 2015-10-04 21:27:57 -06:00 committed by Alexandre Julliard
parent 9c750bb956
commit 7bbcc766ef

View File

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