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
ede2c343
Commit
ede2c343
authored
Jul 07, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jul 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a MsgWaitForMultipleObjects test.
parent
257c337c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
msg.c
dlls/user/tests/msg.c
+17
-0
No files found.
dlls/user/tests/msg.c
View file @
ede2c343
...
...
@@ -2904,6 +2904,7 @@ static void test_messages(void)
HWND
hchild2
,
hbutton
;
HMENU
hmenu
;
MSG
msg
;
DWORD
ret
;
flush_sequence
();
...
...
@@ -3202,6 +3203,22 @@ static void test_messages(void)
while
(
PeekMessage
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessage
(
&
msg
);
flush_sequence
();
/* MsgWaitForMultipleObjects test */
ret
=
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
0
,
QS_POSTMESSAGE
);
ok
(
ret
==
WAIT_TIMEOUT
,
"MsgWaitForMultipleObjects returned %lx
\n
"
,
ret
);
PostMessageA
(
hparent
,
WM_USER
,
0
,
0
);
ret
=
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
0
,
QS_POSTMESSAGE
);
ok
(
ret
==
WAIT_OBJECT_0
,
"MsgWaitForMultipleObjects returned %lx
\n
"
,
ret
);
ok
(
PeekMessageW
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
),
"PeekMessage should succeed
\n
"
);
ok
(
msg
.
message
==
WM_USER
,
"got %04x instead of WM_USER
\n
"
,
msg
.
message
);
ret
=
MsgWaitForMultipleObjects
(
0
,
NULL
,
FALSE
,
0
,
QS_POSTMESSAGE
);
ok
(
ret
==
WAIT_TIMEOUT
,
"MsgWaitForMultipleObjects returned %lx
\n
"
,
ret
);
/* end of MsgWaitForMultipleObjects test */
/* the following test causes an exception in user.exe under win9x */
if
(
!
PostMessageW
(
hparent
,
WM_USER
,
0
,
0
))
return
;
PostMessageW
(
hparent
,
WM_USER
+
1
,
0
,
0
);
...
...
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