Commit f8db63bb authored by Paul Quinn's avatar Paul Quinn Committed by Alexandre Julliard

GetCursorPos is actually a BOOL.

parent f4eb65b2
......@@ -349,7 +349,7 @@ HWND16 WINAPI GetClipboardViewer16(void);
void WINAPI GetClipCursor16(LPRECT16);
DWORD WINAPI GetCurrentTime16(void);
HCURSOR16 WINAPI GetCursor16(void);
void WINAPI GetCursorPos16(LPPOINT16);
BOOL16 WINAPI GetCursorPos16(LPPOINT16);
HDC16 WINAPI GetDC16(HWND16);
HDC16 WINAPI GetDCEx16(HWND16,HRGN16,DWORD);
HWND16 WINAPI GetDesktopWindow16(void);
......
......@@ -1064,7 +1064,7 @@ void WINAPI GetClipCursor32(LPRECT32);
#define GetCurrentTime WINELIB_NAME(GetCurrentTime)
HCURSOR32 WINAPI GetCursor32(void);
#define GetCursor WINELIB_NAME(GetCursor)
void WINAPI GetCursorPos32(LPPOINT32);
BOOL32 WINAPI GetCursorPos32(LPPOINT32);
#define GetCursorPos WINELIB_NAME(GetCursorPos)
HDC32 WINAPI GetDC32(HWND32);
#define GetDC WINELIB_NAME(GetDC)
......
......@@ -1275,11 +1275,11 @@ BOOL32 WINAPI ClipCursor32( const RECT32 *rect )
/***********************************************************************
* GetCursorPos16 (USER.17)
*/
void WINAPI GetCursorPos16( POINT16 *pt )
BOOL16 WINAPI GetCursorPos16( POINT16 *pt )
{
DWORD posX, posY, state;
if (!pt) return;
if (!pt) return 0;
if (!EVENT_QueryPointer( &posX, &posY, &state ))
pt->x = pt->y = 0;
else
......@@ -1300,17 +1300,21 @@ void WINAPI GetCursorPos16( POINT16 *pt )
MouseButtonsStates[2] = FALSE;
}
TRACE(cursor, "ret=%d,%d\n", pt->x, pt->y );
return 1;
}
/***********************************************************************
* GetCursorPos32 (USER32.229)
*/
void WINAPI GetCursorPos32( POINT32 *pt )
BOOL32 WINAPI GetCursorPos32( POINT32 *pt )
{
BOOL32 ret;
POINT16 pt16;
GetCursorPos16( &pt16 );
ret = GetCursorPos16( &pt16 );
if (pt) CONV_POINT16TO32( &pt16, pt );
return ((pt) ? ret : 0);
}
......
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