Commit 64569c66 authored by Alexander Scott-Johns's avatar Alexander Scott-Johns Committed by Alexandre Julliard

user32: When sending the WM_DRAWCLIPBOARD message, pass the clipboard owner in wParam.

parent 4807fd99
......@@ -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;
}
......
......@@ -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)", TRUE);
ok_sequence(wm_clipboard_changed, "clear clipbd (viewer=owner=1)", FALSE);
/* 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)", TRUE);
ok_sequence(wm_clipboard_changed_and_owned, "clear clipbd (viewer=1, owner=2)", FALSE);
/* Test re-registering same window. */
hRet = SetClipboardViewer(hWnd1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment