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
2ac81edb
Commit
2ac81edb
authored
Sep 12, 2023
by
Esme Povirk
Committed by
Alexandre Julliard
Sep 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Detect win7's broken GetQueueStatus behavior.
parent
578fc9c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
msg.c
dlls/user32/tests/msg.c
+13
-2
No files found.
dlls/user32/tests/msg.c
View file @
2ac81edb
...
...
@@ -13380,7 +13380,7 @@ static void test_PeekMessage(void)
DWORD
tid
,
qstatus
;
UINT
qs_all_input
=
QS_ALLINPUT
;
UINT
qs_input
=
QS_INPUT
;
BOOL
ret
;
BOOL
ret
,
broken_flags
=
FALSE
;
struct
peekmsg_info
info
;
info
.
hwnd
=
CreateWindowA
(
"TestWindowClass"
,
NULL
,
WS_OVERLAPPEDWINDOW
,
...
...
@@ -13407,6 +13407,13 @@ static void test_PeekMessage(void)
trace
(
"QS_RAWINPUT not supported on this platform
\n
"
);
qs_all_input
&=
~
QS_RAWINPUT
;
qs_input
&=
~
QS_RAWINPUT
;
SetLastError
(
0xdeadbeef
);
qstatus
=
GetQueueStatus
(
qs_all_input
);
if
(
GetLastError
()
==
ERROR_INVALID_FLAGS
)
broken_flags
=
TRUE
;
ok
(
GetLastError
()
==
0xdeadbeef
||
broken
(
GetLastError
()
==
ERROR_INVALID_FLAGS
)
/* win7 */
,
"wrong error %ld
\n
"
,
GetLastError
());
}
if
(
qstatus
&
QS_POSTMESSAGE
)
{
...
...
@@ -13426,10 +13433,14 @@ static void test_PeekMessage(void)
if
(
!
qstatus
)
{
ok
(
GetLastError
()
==
ERROR_INVALID_FLAGS
,
"wrong error %ld
\n
"
,
GetLastError
());
SetLastError
(
0xdeadbeef
);
qstatus
=
GetQueueStatus
(
qs_all_input
);
ok
(
GetLastError
()
==
0xdeadbeef
||
broken
(
broken_flags
&&
GetLastError
()
==
ERROR_INVALID_FLAGS
),
"wrong error %ld
\n
"
,
GetLastError
());
}
qstatus
&=
~
MAKELONG
(
0x4000
,
0x4000
);
/* sometimes set on Win95 */
ok
(
qstatus
==
MAKELONG
(
QS_SENDMESSAGE
,
QS_SENDMESSAGE
),
ok
(
qstatus
==
MAKELONG
(
QS_SENDMESSAGE
,
QS_SENDMESSAGE
)
||
broken
(
broken_flags
&&
qstatus
==
0
),
"wrong qstatus %08lx
\n
"
,
qstatus
);
msg
.
message
=
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