Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
7ea3a29e
Commit
7ea3a29e
authored
Aug 06, 2002
by
Lionel Ulmer
Committed by
Alexandre Julliard
Aug 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle 'not acquired' error messages on keyboard GetDeviceData.
parent
60a583d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
main.c
dlls/dinput/keyboard/main.c
+10
-0
No files found.
dlls/dinput/keyboard/main.c
View file @
7ea3a29e
...
...
@@ -78,6 +78,8 @@ HHOOK keyboard_hook;
LRESULT
CALLBACK
KeyboardCallback
(
int
code
,
WPARAM
wparam
,
LPARAM
lparam
)
{
TRACE
(
"(%d,%d,%ld)
\n
"
,
code
,
wparam
,
lparam
);
if
(
code
==
HC_ACTION
)
{
BYTE
dik_code
;
...
...
@@ -112,6 +114,9 @@ LRESULT CALLBACK KeyboardCallback( int code, WPARAM wparam, LPARAM lparam )
current
->
buffer
[
n
].
dwTimeStamp
=
timestamp
;
current
->
buffer
[
n
].
dwSequence
=
current
->
dinput
->
evsequence
++
;
TRACE
(
"Adding event at offset %d : %ld - %ld - %ld - %ld
\n
"
,
n
,
current
->
buffer
[
n
].
dwOfs
,
current
->
buffer
[
n
].
dwData
,
current
->
buffer
[
n
].
dwTimeStamp
,
current
->
buffer
[
n
].
dwSequence
);
if
(
current
->
count
==
current
->
buffersize
)
{
current
->
start
++
;
...
...
@@ -246,6 +251,9 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
TRACE
(
"(this=%p,%ld,%p,%p(%ld)),0x%08lx)
\n
"
,
This
,
dodsize
,
dod
,
entries
,
entries
?*
entries
:
0
,
flags
);
if
(
This
->
acquired
==
0
)
return
DIERR_NOTACQUIRED
;
if
(
This
->
buffer
==
NULL
)
return
DIERR_NOTBUFFERED
;
...
...
@@ -285,6 +293,8 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
LeaveCriticalSection
(
&
(
This
->
crit
));
TRACE
(
"Returning %ld events queued
\n
"
,
*
entries
);
return
ret
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment