mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
Fix return type of GetAsyncKeyState.
This commit is contained in:
parent
d10c9a47b8
commit
f11de4fc3d
3 changed files with 6 additions and 6 deletions
|
@ -704,7 +704,7 @@ BOOL16 WINAPI FlashWindow16(HWND16,BOOL16);
|
|||
DWORD WINAPI FormatMessage16(DWORD,SEGPTR,WORD,WORD,LPSTR,WORD,LPDWORD);
|
||||
INT16 WINAPI FrameRect16(HDC16,const RECT16*,HBRUSH16);
|
||||
HWND16 WINAPI GetActiveWindow16(void);
|
||||
WORD WINAPI GetAsyncKeyState16(INT16);
|
||||
INT16 WINAPI GetAsyncKeyState16(INT16);
|
||||
HWND16 WINAPI GetCapture16(void);
|
||||
UINT16 WINAPI GetCaretBlinkTime16(void);
|
||||
VOID WINAPI GetCaretPos16(LPPOINT16);
|
||||
|
|
|
@ -3822,7 +3822,7 @@ INT WINAPI FrameRect(HDC,const RECT*,HBRUSH);
|
|||
HWND WINAPI GetActiveWindow(void);
|
||||
HWND WINAPI GetAncestor(HWND,UINT);
|
||||
DWORD WINAPI GetAppCompatFlags(HTASK);
|
||||
WORD WINAPI GetAsyncKeyState(INT);
|
||||
SHORT WINAPI GetAsyncKeyState(INT);
|
||||
HWND WINAPI GetCapture(void);
|
||||
UINT WINAPI GetCaretBlinkTime(void);
|
||||
BOOL WINAPI GetCaretPos(LPPOINT);
|
||||
|
|
|
@ -596,9 +596,9 @@ HWND WINAPI GetCapture(void)
|
|||
* mouse or key had been depressed since the last call to
|
||||
* GetAsyncKeyState.
|
||||
*/
|
||||
WORD WINAPI GetAsyncKeyState(INT nKey)
|
||||
SHORT WINAPI GetAsyncKeyState(INT nKey)
|
||||
{
|
||||
WORD retval = ((AsyncKeyStateTable[nKey] & 0x80) ? 0x0001 : 0) |
|
||||
SHORT retval = ((AsyncKeyStateTable[nKey] & 0x80) ? 0x0001 : 0) |
|
||||
((InputKeyStateTable[nKey] & 0x80) ? 0x8000 : 0);
|
||||
AsyncKeyStateTable[nKey] = 0;
|
||||
TRACE_(key)("(%x) -> %x\n", nKey, retval);
|
||||
|
@ -608,7 +608,7 @@ WORD WINAPI GetAsyncKeyState(INT nKey)
|
|||
/**********************************************************************
|
||||
* GetAsyncKeyState (USER.249)
|
||||
*/
|
||||
WORD WINAPI GetAsyncKeyState16(INT16 nKey)
|
||||
INT16 WINAPI GetAsyncKeyState16(INT16 nKey)
|
||||
{
|
||||
return GetAsyncKeyState(nKey);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue