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
1c31bdca
Commit
1c31bdca
authored
Sep 26, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Flush window events to fix some race conditions.
parent
c19f8864
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
win.c
dlls/user32/tests/win.c
+5
-2
No files found.
dlls/user32/tests/win.c
View file @
1c31bdca
...
...
@@ -8143,9 +8143,11 @@ static void test_EnableWindow(void)
DWORD
tid
;
MSG
msg
;
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
NULL
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
100
,
100
,
0
,
0
,
0
,
NULL
);
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
NULL
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
0
,
0
,
GetSystemMetrics
(
SM_CXSCREEN
),
GetSystemMetrics
(
SM_CYSCREEN
),
0
,
0
,
0
,
NULL
);
assert
(
hwnd
);
flush_events
(
TRUE
);
ok
(
IsWindowEnabled
(
hwnd
),
"window should be enabled
\n
"
);
SetFocus
(
hwnd
);
SetCapture
(
hwnd
);
...
...
@@ -8658,6 +8660,7 @@ static void run_NCRedrawLoop(UINT flags)
UINT
loopcount
=
0
;
flush_events
(
TRUE
);
hwnd
=
CreateWindowA
(
"TestNCRedrawClass"
,
"MainWindow"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
200
,
100
,
NULL
,
NULL
,
0
,
&
flags
);
...
...
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