Module: wine Branch: master Commit: 7bbcc766ef10770f64db002c08f08bafc94780dd URL: http://source.winehq.org/git/wine.git/?a=commit;h=7bbcc766ef10770f64db002c08... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Sun Oct 4 21:27:57 2015 -0600 user32: Pass num_steps=0 to alloc_icon_handle if is_ani=FALSE. Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com> --- dlls/user32/cursoricon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/user32/cursoricon.c b/dlls/user32/cursoricon.c index 6a05822..ea3f2ef 100644 --- a/dlls/user32/cursoricon.c +++ b/dlls/user32/cursoricon.c @@ -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 );