Changed the return value of GetKeyboardState and SetKeyboardState from
VOID to BOOL.
diff --git a/include/winuser.h b/include/winuser.h
index 6115637..a85b499 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -2883,7 +2883,7 @@
/* Declarations for functions that are the same in Win16 and Win32 */
VOID WINAPI EndMenu(void);
DWORD WINAPI GetDialogBaseUnits(void);
-VOID WINAPI GetKeyboardState(LPBYTE);
+BOOL WINAPI GetKeyboardState(LPBYTE);
DWORD WINAPI GetMenuCheckMarkDimensions(void);
LONG WINAPI GetMessageExtraInfo(void);
DWORD WINAPI GetMessagePos(void);
@@ -2892,7 +2892,7 @@
ATOM WINAPI GlobalDeleteAtom(ATOM);
DWORD WINAPI OemKeyScan(WORD);
BOOL WINAPI ReleaseCapture(void);
-VOID WINAPI SetKeyboardState(LPBYTE);
+BOOL WINAPI SetKeyboardState(LPBYTE);
VOID WINAPI WaitMessage(VOID);
diff --git a/windows/input.c b/windows/input.c
index d55a51b..1738224 100644
--- a/windows/input.c
+++ b/windows/input.c
@@ -460,7 +460,7 @@
* keyboard-input message. This function retrieves the state of the keyboard
* at the time the input message was generated. (SDK 3.1 Vol 2. p 387)
*/
-VOID WINAPI GetKeyboardState(LPBYTE lpKeyState)
+BOOL WINAPI GetKeyboardState(LPBYTE lpKeyState)
{
TRACE_(key)("(%p)\n", lpKeyState);
if (lpKeyState != NULL) {
@@ -469,12 +469,14 @@
QueueKeyStateTable[VK_RBUTTON] = MouseButtonsStates[2] ? 0x80 : 0;
memcpy(lpKeyState, QueueKeyStateTable, 256);
}
+
+ return TRUE;
}
/**********************************************************************
* SetKeyboardState (USER.223)(USER32.484)
*/
-VOID WINAPI SetKeyboardState(LPBYTE lpKeyState)
+BOOL WINAPI SetKeyboardState(LPBYTE lpKeyState)
{
TRACE_(key)("(%p)\n", lpKeyState);
if (lpKeyState != NULL) {
@@ -483,6 +485,8 @@
MouseButtonsStates[1] = (QueueKeyStateTable[VK_MBUTTON] != 0);
MouseButtonsStates[2] = (QueueKeyStateTable[VK_RBUTTON] != 0);
}
+
+ return TRUE;
}
/**********************************************************************