Commit dd6e2b36 authored by Oleg Krylov's avatar Oleg Krylov Committed by Alexandre Julliard

user: Fix CopyImage function declaration.

parent 06f9c797
......@@ -2308,7 +2308,7 @@ HANDLE WINAPI LoadImageW( HINSTANCE hinst, LPCWSTR name, UINT type,
* if the source is a DIB section.
* The LR_MONOCHROME flag is ignored if LR_CREATEDIBSECTION is present.
*/
HICON WINAPI CopyImage( HANDLE hnd, UINT type, INT desiredx,
HANDLE WINAPI CopyImage( HANDLE hnd, UINT type, INT desiredx,
INT desiredy, UINT flags )
{
TRACE("hnd=%p, type=%u, desiredx=%d, desiredy=%d, flags=%x\n",
......@@ -2492,7 +2492,7 @@ HICON WINAPI CopyImage( HANDLE hnd, UINT type, INT desiredx,
}
}
HeapFree(GetProcessHeap(), 0, bi);
return (HICON)res;
return res;
}
case IMAGE_ICON:
return CURSORICON_ExtCopy(hnd,type, desiredx, desiredy, flags);
......
......@@ -4215,7 +4215,7 @@ BOOL WINAPI CloseWindow(HWND);
BOOL WINAPI CloseWindowStation(HWINSTA);
#define CopyCursor(cur) ((HCURSOR)CopyIcon((HICON)(cur)))
HICON WINAPI CopyIcon(HICON);
HICON WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
HANDLE WINAPI CopyImage(HANDLE,UINT,INT,INT,UINT);
BOOL WINAPI CopyRect(RECT*,const RECT*);
INT WINAPI CountClipboardFormats(void);
BOOL WINAPI CreateCaret(HWND,HBITMAP,INT,INT);
......
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