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
7b738b7f
Commit
7b738b7f
authored
Mar 08, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure to always pass valid QS_* flags to
MsgWaitForMultipleObjects.
parent
c02dd0a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
10 deletions
+12
-10
keyboard.c
dlls/dinput/keyboard.c
+2
-2
message.c
dlls/user/message.c
+4
-3
mciavi.c
dlls/winmm/mciavi/mciavi.c
+4
-3
queue.c
windows/queue.c
+2
-2
No files found.
dlls/dinput/keyboard.c
View file @
7b738b7f
...
...
@@ -397,7 +397,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceState(
if
(
len
!=
256
)
return
DIERR_INVALIDPARAM
;
MsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
0
,
0
);
MsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_ALLINPUT
,
0
);
if
(
TRACE_ON
(
dinput
))
{
int
i
;
...
...
@@ -432,7 +432,7 @@ static HRESULT WINAPI SysKeyboardAImpl_GetDeviceData(
if
(
dodsize
<
sizeof
(
DIDEVICEOBJECTDATA_DX3
))
return
DIERR_INVALIDPARAM
;
MsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
0
,
0
);
MsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_ALLINPUT
,
0
);
EnterCriticalSection
(
&
(
This
->
crit
));
...
...
dlls/user/message.c
View file @
7b738b7f
...
...
@@ -1777,7 +1777,7 @@ static void wait_message_reply( UINT flags )
if
(
USER_Driver
.
pMsgWaitForMultipleObjectsEx
)
res
=
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
1
,
&
queue
->
server_queue
,
INFINITE
,
0
,
0
);
INFINITE
,
QS_ALLINPUT
,
0
);
else
res
=
WaitForSingleObject
(
queue
->
server_queue
,
INFINITE
);
...
...
@@ -2338,7 +2338,7 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
/* check for graphics events */
if
(
USER_Driver
.
pMsgWaitForMultipleObjectsEx
)
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
0
,
0
);
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_ALLINPUT
,
0
);
hwnd
=
WIN_GetFullHandle
(
hwnd
);
locks
=
WIN_SuspendWndsLock
();
...
...
@@ -2444,7 +2444,8 @@ BOOL WINAPI GetMessageW( MSG *msg, HWND hwnd, UINT first, UINT last )
ReleaseThunkLock
(
&
dwlc
);
if
(
USER_Driver
.
pMsgWaitForMultipleObjectsEx
)
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
1
,
&
queue
->
server_queue
,
INFINITE
,
0
,
0
);
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
1
,
&
queue
->
server_queue
,
INFINITE
,
QS_ALLINPUT
,
0
);
else
WaitForSingleObject
(
queue
->
server_queue
,
INFINITE
);
if
(
dwlc
)
RestoreThunkLock
(
dwlc
);
...
...
dlls/winmm/mciavi/mciavi.c
View file @
7b738b7f
...
...
@@ -514,8 +514,8 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
delta
=
GetTickCount
()
-
tc
;
LeaveCriticalSection
(
&
wma
->
cs
);
ret
=
MsgWaitForMultipleObjects
(
2
,
events
,
FALSE
,
(
delta
>=
frameTime
)
?
0
:
frameTime
-
delta
,
MWMO_INPUTAVAILABLE
);
ret
=
MsgWaitForMultipleObjects
Ex
(
2
,
events
,
(
delta
>=
frameTime
)
?
0
:
frameTime
-
delta
,
QS_ALLINPUT
,
MWMO_INPUTAVAILABLE
);
EnterCriticalSection
(
&
wma
->
cs
);
if
(
ret
==
WAIT_OBJECT_0
||
wma
->
dwStatus
!=
MCI_MODE_PLAY
)
break
;
...
...
@@ -527,7 +527,8 @@ static DWORD MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
DWORD
ret
;
LeaveCriticalSection
(
&
wma
->
cs
);
ret
=
MsgWaitForMultipleObjects
(
1
,
&
wma
->
hStopEvent
,
FALSE
,
frameTime
-
delta
,
MWMO_INPUTAVAILABLE
);
ret
=
MsgWaitForMultipleObjectsEx
(
1
,
&
wma
->
hStopEvent
,
frameTime
-
delta
,
QS_ALLINPUT
,
MWMO_INPUTAVAILABLE
);
EnterCriticalSection
(
&
wma
->
cs
);
if
(
ret
==
WAIT_OBJECT_0
)
break
;
}
...
...
windows/queue.c
View file @
7b738b7f
...
...
@@ -146,7 +146,7 @@ DWORD WINAPI GetQueueStatus( UINT flags )
/* check for pending X events */
if
(
USER_Driver
.
pMsgWaitForMultipleObjectsEx
)
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
0
,
0
);
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_ALLINPUT
,
0
);
SERVER_START_REQ
(
get_queue_status
)
{
...
...
@@ -168,7 +168,7 @@ BOOL WINAPI GetInputState(void)
/* check for pending X events */
if
(
USER_Driver
.
pMsgWaitForMultipleObjectsEx
)
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
0
,
0
);
USER_Driver
.
pMsgWaitForMultipleObjectsEx
(
0
,
NULL
,
0
,
QS_INPUT
,
0
);
SERVER_START_REQ
(
get_queue_status
)
{
...
...
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