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
1 changed files with 3 additions and 3 deletions

View File

@ -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 );