Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
ee3c1d7a
Commit
ee3c1d7a
authored
25 years ago
by
Francis Beaudet
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Changed the return value of GetKeyboardState and SetKeyboardState from
VOID to BOOL.
parent
428d298a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/winuser.h
+2
-2
2 additions, 2 deletions
include/winuser.h
windows/input.c
+6
-2
6 additions, 2 deletions
windows/input.c
with
8 additions
and
4 deletions
include/winuser.h
+
2
−
2
View file @
ee3c1d7a
...
...
@@ -2883,7 +2883,7 @@ VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,DWORD);
/* 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 @@ DWORD WINAPI GetTickCount(void);
ATOM
WINAPI
GlobalDeleteAtom
(
ATOM
);
DWORD
WINAPI
OemKeyScan
(
WORD
);
BOOL
WINAPI
ReleaseCapture
(
void
);
VOID
WINAPI
SetKeyboardState
(
LPBYTE
);
BOOL
WINAPI
SetKeyboardState
(
LPBYTE
);
VOID
WINAPI
WaitMessage
(
VOID
);
...
...
This diff is collapsed.
Click to expand it.
windows/input.c
+
6
−
2
View file @
ee3c1d7a
...
...
@@ -460,7 +460,7 @@ INT16 WINAPI GetKeyState(INT vkey)
* 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 @@ VOID WINAPI GetKeyboardState(LPBYTE lpKeyState)
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 @@ VOID WINAPI SetKeyboardState(LPBYTE lpKeyState)
MouseButtonsStates
[
1
]
=
(
QueueKeyStateTable
[
VK_MBUTTON
]
!=
0
);
MouseButtonsStates
[
2
]
=
(
QueueKeyStateTable
[
VK_RBUTTON
]
!=
0
);
}
return
TRUE
;
}
/**********************************************************************
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment