GetCursorPos is actually a BOOL.

This commit is contained in:
Paul Quinn 1999-02-09 14:24:45 +00:00 committed by Alexandre Julliard
parent f4eb65b2ff
commit f8db63bbc0
3 changed files with 10 additions and 6 deletions

View File

@ -349,7 +349,7 @@ HWND16 WINAPI GetClipboardViewer16(void);
void WINAPI GetClipCursor16(LPRECT16); void WINAPI GetClipCursor16(LPRECT16);
DWORD WINAPI GetCurrentTime16(void); DWORD WINAPI GetCurrentTime16(void);
HCURSOR16 WINAPI GetCursor16(void); HCURSOR16 WINAPI GetCursor16(void);
void WINAPI GetCursorPos16(LPPOINT16); BOOL16 WINAPI GetCursorPos16(LPPOINT16);
HDC16 WINAPI GetDC16(HWND16); HDC16 WINAPI GetDC16(HWND16);
HDC16 WINAPI GetDCEx16(HWND16,HRGN16,DWORD); HDC16 WINAPI GetDCEx16(HWND16,HRGN16,DWORD);
HWND16 WINAPI GetDesktopWindow16(void); HWND16 WINAPI GetDesktopWindow16(void);

View File

@ -1064,7 +1064,7 @@ void WINAPI GetClipCursor32(LPRECT32);
#define GetCurrentTime WINELIB_NAME(GetCurrentTime) #define GetCurrentTime WINELIB_NAME(GetCurrentTime)
HCURSOR32 WINAPI GetCursor32(void); HCURSOR32 WINAPI GetCursor32(void);
#define GetCursor WINELIB_NAME(GetCursor) #define GetCursor WINELIB_NAME(GetCursor)
void WINAPI GetCursorPos32(LPPOINT32); BOOL32 WINAPI GetCursorPos32(LPPOINT32);
#define GetCursorPos WINELIB_NAME(GetCursorPos) #define GetCursorPos WINELIB_NAME(GetCursorPos)
HDC32 WINAPI GetDC32(HWND32); HDC32 WINAPI GetDC32(HWND32);
#define GetDC WINELIB_NAME(GetDC) #define GetDC WINELIB_NAME(GetDC)

View File

@ -1275,11 +1275,11 @@ BOOL32 WINAPI ClipCursor32( const RECT32 *rect )
/*********************************************************************** /***********************************************************************
* GetCursorPos16 (USER.17) * GetCursorPos16 (USER.17)
*/ */
void WINAPI GetCursorPos16( POINT16 *pt ) BOOL16 WINAPI GetCursorPos16( POINT16 *pt )
{ {
DWORD posX, posY, state; DWORD posX, posY, state;
if (!pt) return; if (!pt) return 0;
if (!EVENT_QueryPointer( &posX, &posY, &state )) if (!EVENT_QueryPointer( &posX, &posY, &state ))
pt->x = pt->y = 0; pt->x = pt->y = 0;
else else
@ -1300,17 +1300,21 @@ void WINAPI GetCursorPos16( POINT16 *pt )
MouseButtonsStates[2] = FALSE; MouseButtonsStates[2] = FALSE;
} }
TRACE(cursor, "ret=%d,%d\n", pt->x, pt->y ); TRACE(cursor, "ret=%d,%d\n", pt->x, pt->y );
return 1;
} }
/*********************************************************************** /***********************************************************************
* GetCursorPos32 (USER32.229) * GetCursorPos32 (USER32.229)
*/ */
void WINAPI GetCursorPos32( POINT32 *pt ) BOOL32 WINAPI GetCursorPos32( POINT32 *pt )
{ {
BOOL32 ret;
POINT16 pt16; POINT16 pt16;
GetCursorPos16( &pt16 ); ret = GetCursorPos16( &pt16 );
if (pt) CONV_POINT16TO32( &pt16, pt ); if (pt) CONV_POINT16TO32( &pt16, pt );
return ((pt) ? ret : 0);
} }