Commit be5015fb authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

user32: Remove unused parameter istep from release_icon_frame.

parent d6875126
...@@ -178,7 +178,7 @@ static struct cursoricon_frame *get_icon_frame( struct cursoricon_object *obj, i ...@@ -178,7 +178,7 @@ static struct cursoricon_frame *get_icon_frame( struct cursoricon_object *obj, i
return &req_frame->frame; return &req_frame->frame;
} }
static void release_icon_frame( struct cursoricon_object *obj, int istep, struct cursoricon_frame *frame ) static void release_icon_frame( struct cursoricon_object *obj, struct cursoricon_frame *frame )
{ {
if (obj->is_ani) if (obj->is_ani)
{ {
...@@ -220,7 +220,7 @@ static BOOL free_icon_handle( HICON handle ) ...@@ -220,7 +220,7 @@ static BOOL free_icon_handle( HICON handle )
if (frame->alpha) DeleteObject( frame->alpha ); if (frame->alpha) DeleteObject( frame->alpha );
if (frame->color) DeleteObject( frame->color ); if (frame->color) DeleteObject( frame->color );
DeleteObject( frame->mask ); DeleteObject( frame->mask );
release_icon_frame( obj, 0, frame ); release_icon_frame( obj, frame );
} }
else else
{ {
...@@ -476,7 +476,7 @@ BOOL get_icon_size( HICON handle, SIZE *size ) ...@@ -476,7 +476,7 @@ BOOL get_icon_size( HICON handle, SIZE *size )
frame = get_icon_frame( info, 0 ); frame = get_icon_frame( info, 0 );
size->cx = frame->width; size->cx = frame->width;
size->cy = frame->height; size->cy = frame->height;
release_icon_frame( info, 0, frame); release_icon_frame( info, frame);
release_user_handle_ptr( info ); release_user_handle_ptr( info );
return TRUE; return TRUE;
} }
...@@ -956,7 +956,7 @@ done: ...@@ -956,7 +956,7 @@ done:
frame->color = color; frame->color = color;
frame->mask = mask; frame->mask = mask;
frame->alpha = alpha; frame->alpha = alpha;
release_icon_frame( info, 0, frame ); release_icon_frame( info, frame );
if (!IS_INTRESOURCE(resname)) if (!IS_INTRESOURCE(resname))
{ {
info->resname = HeapAlloc( GetProcessHeap(), 0, (strlenW(resname) + 1) * sizeof(WCHAR) ); info->resname = HeapAlloc( GetProcessHeap(), 0, (strlenW(resname) + 1) * sizeof(WCHAR) );
...@@ -1264,7 +1264,7 @@ static HCURSOR CURSORICON_CreateIconFromANI( const BYTE *bits, DWORD bits_size, ...@@ -1264,7 +1264,7 @@ static HCURSOR CURSORICON_CreateIconFromANI( const BYTE *bits, DWORD bits_size,
frame->delay = frame_rates[i]; frame->delay = frame_rates[i];
else else
frame->delay = ~0; frame->delay = ~0;
release_icon_frame( info, i, frame ); release_icon_frame( info, frame );
} }
HeapFree( GetProcessHeap(), 0, frames ); HeapFree( GetProcessHeap(), 0, frames );
...@@ -1591,7 +1591,7 @@ HICON WINAPI CopyIcon( HICON hIcon ) ...@@ -1591,7 +1591,7 @@ HICON WINAPI CopyIcon( HICON hIcon )
} }
if (!(frameNew = get_icon_frame( ptrNew, 0 ))) if (!(frameNew = get_icon_frame( ptrNew, 0 )))
{ {
release_icon_frame( ptrOld, 0, frameOld ); release_icon_frame( ptrOld, frameOld );
release_user_handle_ptr( ptrOld ); release_user_handle_ptr( ptrOld );
SetLastError( ERROR_INVALID_CURSOR_HANDLE ); SetLastError( ERROR_INVALID_CURSOR_HANDLE );
return 0; return 0;
...@@ -1602,8 +1602,8 @@ HICON WINAPI CopyIcon( HICON hIcon ) ...@@ -1602,8 +1602,8 @@ HICON WINAPI CopyIcon( HICON hIcon )
frameNew->mask = copy_bitmap( frameOld->mask ); frameNew->mask = copy_bitmap( frameOld->mask );
frameNew->color = copy_bitmap( frameOld->color ); frameNew->color = copy_bitmap( frameOld->color );
frameNew->alpha = copy_bitmap( frameOld->alpha ); frameNew->alpha = copy_bitmap( frameOld->alpha );
release_icon_frame( ptrOld, 0, frameOld ); release_icon_frame( ptrOld, frameOld );
release_icon_frame( ptrNew, 0, frameNew ); release_icon_frame( ptrNew, frameNew );
release_user_handle_ptr( ptrNew ); release_user_handle_ptr( ptrNew );
} }
release_user_handle_ptr( ptrOld ); release_user_handle_ptr( ptrOld );
...@@ -1975,7 +1975,7 @@ HCURSOR WINAPI GetCursorFrameInfo(HCURSOR hCursor, DWORD reserved, DWORD istep, ...@@ -1975,7 +1975,7 @@ HCURSOR WINAPI GetCursorFrameInfo(HCURSOR hCursor, DWORD reserved, DWORD istep,
*rate_jiffies = ptr->delay; *rate_jiffies = ptr->delay;
else else
*rate_jiffies = frame->delay; *rate_jiffies = frame->delay;
release_icon_frame( ptr, istep, frame ); release_icon_frame( ptr, frame );
} }
} }
...@@ -2077,7 +2077,7 @@ BOOL WINAPI GetIconInfoExW( HICON icon, ICONINFOEXW *info ) ...@@ -2077,7 +2077,7 @@ BOOL WINAPI GetIconInfoExW( HICON icon, ICONINFOEXW *info )
ret = FALSE; ret = FALSE;
} }
module = ptr->module; module = ptr->module;
release_icon_frame( ptr, 0, frame ); release_icon_frame( ptr, frame );
release_user_handle_ptr( ptr ); release_user_handle_ptr( ptr );
if (ret && module) GetModuleFileNameW( module, info->szModName, MAX_PATH ); if (ret && module) GetModuleFileNameW( module, info->szModName, MAX_PATH );
return ret; return ret;
...@@ -2196,7 +2196,7 @@ HICON WINAPI CreateIconIndirect(PICONINFO iconinfo) ...@@ -2196,7 +2196,7 @@ HICON WINAPI CreateIconIndirect(PICONINFO iconinfo)
frame->color = color; frame->color = color;
frame->mask = mask; frame->mask = mask;
frame->alpha = create_alpha_bitmap( iconinfo->hbmColor, mask, NULL, NULL ); frame->alpha = create_alpha_bitmap( iconinfo->hbmColor, mask, NULL, NULL );
release_icon_frame( info, 0, frame ); release_icon_frame( info, frame );
if (info->is_icon) if (info->is_icon)
{ {
info->hotspot.x = width / 2; info->hotspot.x = width / 2;
...@@ -2264,7 +2264,7 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon, ...@@ -2264,7 +2264,7 @@ BOOL WINAPI DrawIconEx( HDC hdc, INT x0, INT y0, HICON hIcon,
} }
if (!(hMemDC = CreateCompatibleDC( hdc ))) if (!(hMemDC = CreateCompatibleDC( hdc )))
{ {
release_icon_frame( ptr, istep, frame ); release_icon_frame( ptr, frame );
release_user_handle_ptr( ptr ); release_user_handle_ptr( ptr );
return FALSE; return FALSE;
} }
...@@ -2378,7 +2378,7 @@ done: ...@@ -2378,7 +2378,7 @@ done:
if (hB_off) DeleteObject(hB_off); if (hB_off) DeleteObject(hB_off);
failed: failed:
DeleteDC( hMemDC ); DeleteDC( hMemDC );
release_icon_frame( ptr, istep, frame ); release_icon_frame( ptr, frame );
release_user_handle_ptr( ptr ); release_user_handle_ptr( ptr );
return result; return result;
} }
......
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