Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
03f645a7
Commit
03f645a7
authored
Feb 06, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Filter WM_QUIT message in PeekMessage call if PM_QS_POSTMESSAGE was not specified.
parent
21d470d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
msg.c
dlls/user32/tests/msg.c
+4
-0
queue.c
server/queue.c
+2
-3
No files found.
dlls/user32/tests/msg.c
View file @
03f645a7
...
...
@@ -10500,6 +10500,10 @@ static void test_quit_message(void)
flush_events
();
PostQuitMessage
(
0xbeef
);
msg
.
message
=
0
;
ret
=
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_QS_SENDMESSAGE
);
ok
(
!
ret
,
"got %x message
\n
"
,
msg
.
message
);
ret
=
PeekMessageA
(
&
msg
,
NULL
,
0
,
0
,
PM_NOREMOVE
);
ok
(
ret
,
"PeekMessage failed with error %d
\n
"
,
GetLastError
());
ok
(
msg
.
message
==
WM_QUIT
,
"Received message 0x%04x instead of WM_QUIT
\n
"
,
msg
.
message
);
...
...
server/queue.c
View file @
03f645a7
...
...
@@ -2384,9 +2384,8 @@ DECL_HANDLER(get_message)
get_posted_message
(
queue
,
get_win
,
WM_HOTKEY
,
WM_HOTKEY
,
req
->
flags
,
reply
))
return
;
/* only check for quit messages if not posted messages pending.
* note: the quit message isn't filtered */
if
(
get_quit_message
(
queue
,
req
->
flags
,
reply
))
/* only check for quit messages if not posted messages pending */
if
((
filter
&
QS_POSTMESSAGE
)
&&
get_quit_message
(
queue
,
req
->
flags
,
reply
))
return
;
/* then check for any raw hardware message */
...
...
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