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
318edcc9
Commit
318edcc9
authored
Jan 29, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Wait for the WM_CLIPBOARDUPDATE message to be received.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b63b779
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
clipboard.c
dlls/user32/tests/clipboard.c
+6
-0
No files found.
dlls/user32/tests/clipboard.c
View file @
318edcc9
...
...
@@ -895,6 +895,7 @@ static UINT wm_renderformat;
static
UINT
nb_formats
;
static
BOOL
cross_thread
;
static
BOOL
do_render_format
;
static
HANDLE
update_event
;
static
LRESULT
CALLBACK
clipboard_wnd_proc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
...
...
@@ -953,6 +954,7 @@ static LRESULT CALLBACK clipboard_wnd_proc(HWND hwnd, UINT msg, WPARAM wp, LPARA
ok
(
msg_flags
==
ISMEX_NOSEND
,
"WM_CLIPBOARDUPDATE wrong flags %x
\n
"
,
msg_flags
);
EnterCriticalSection
(
&
clipboard_cs
);
wm_clipboardupdate
++
;
SetEvent
(
update_event
);
LeaveCriticalSection
(
&
clipboard_cs
);
break
;
case
WM_USER
:
...
...
@@ -1011,6 +1013,9 @@ static void check_messages_(int line, HWND win, UINT seq_diff, UINT draw, UINT u
while
(
PeekMessageW
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageW
(
&
msg
);
}
if
(
update
&&
!
broken
(
!
pAddClipboardFormatListener
))
ok
(
WaitForSingleObject
(
update_event
,
1000
)
==
WAIT_OBJECT_0
,
"wait failed
\n
"
);
count
=
SendMessageA
(
win
,
WM_USER
+
1
,
0
,
0
);
ok_
(
__FILE__
,
line
)(
count
==
draw
,
"WM_DRAWCLIPBOARD %sreceived
\n
"
,
draw
?
"not "
:
""
);
count
=
SendMessageA
(
win
,
WM_USER
+
2
,
0
,
0
);
...
...
@@ -1274,6 +1279,7 @@ static void test_messages(void)
DWORD
tid
;
InitializeCriticalSection
(
&
clipboard_cs
);
update_event
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
memset
(
&
cls
,
0
,
sizeof
(
cls
));
cls
.
lpfnWndProc
=
clipboard_wnd_proc
;
...
...
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