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
64569c66
Commit
64569c66
authored
Sep 23, 2009
by
Alexander Scott-Johns
Committed by
Alexandre Julliard
Sep 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: When sending the WM_DRAWCLIPBOARD message, pass the clipboard owner in wParam.
parent
4807fd99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
clipboard.c
dlls/user32/clipboard.c
+1
-1
msg.c
dlls/user32/tests/msg.c
+2
-2
No files found.
dlls/user32/clipboard.c
View file @
64569c66
...
...
@@ -285,7 +285,7 @@ BOOL WINAPI CloseClipboard(void)
USER_Driver
->
pEndClipboardUpdate
();
if
(
hWndViewer
)
SendMessageW
(
hWndViewer
,
WM_DRAWCLIPBOARD
,
0
,
0
);
SendMessageW
(
hWndViewer
,
WM_DRAWCLIPBOARD
,
(
WPARAM
)
GetClipboardOwner
()
,
0
);
bCBHasChanged
=
FALSE
;
}
...
...
dlls/user32/tests/msg.c
View file @
64569c66
...
...
@@ -11820,12 +11820,12 @@ static void test_clipboard_viewers(void)
/* Test that changing the clipboard actually refreshes the registered viewer. */
clear_clipboard
(
hWnd1
);
wm_clipboard_changed
[
0
].
wParam
=
(
WPARAM
)
GetClipboardOwner
();
ok_sequence
(
wm_clipboard_changed
,
"clear clipbd (viewer=owner=1)"
,
TRU
E
);
ok_sequence
(
wm_clipboard_changed
,
"clear clipbd (viewer=owner=1)"
,
FALS
E
);
/* Again, but with different owner. */
clear_clipboard
(
hWnd2
);
wm_clipboard_changed_and_owned
[
1
].
wParam
=
(
WPARAM
)
GetClipboardOwner
();
ok_sequence
(
wm_clipboard_changed_and_owned
,
"clear clipbd (viewer=1, owner=2)"
,
TRU
E
);
ok_sequence
(
wm_clipboard_changed_and_owned
,
"clear clipbd (viewer=1, owner=2)"
,
FALS
E
);
/* Test re-registering same window. */
hRet
=
SetClipboardViewer
(
hWnd1
);
...
...
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