Commit 7888382e authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Notify the clipboard viewer on close even if we are not the owner.

parent 57e2b75c
......@@ -181,12 +181,12 @@ BOOL WINAPI CloseClipboard(void)
if (!ret) return FALSE;
if (bCBHasChanged && owner)
if (bCBHasChanged)
{
USER_Driver->pEndClipboardUpdate();
if (owner) USER_Driver->pEndClipboardUpdate();
bCBHasChanged = FALSE;
if (viewer) SendNotifyMessageW(viewer, WM_DRAWCLIPBOARD, (WPARAM) GetClipboardOwner(), 0);
}
bCBHasChanged = FALSE;
return TRUE;
}
......
......@@ -838,7 +838,7 @@ static DWORD WINAPI clipboard_thread(void *param)
old_seq = seq;
}
count = SendMessageA( win, WM_USER+1, 0, 0 );
todo_wine ok( count, "WM_DRAWCLIPBOARD not received\n" );
ok( count, "WM_DRAWCLIPBOARD not received\n" );
count = SendMessageA( win, WM_USER+2, 0, 0 );
todo_wine ok( count || broken(!pAddClipboardFormatListener), "WM_CLIPBOARDUPDATE not received\n" );
......@@ -881,7 +881,7 @@ static DWORD WINAPI clipboard_thread(void *param)
old_seq = seq;
}
count = SendMessageA( win, WM_USER+1, 0, 0 );
todo_wine ok( count, "WM_DRAWCLIPBOARD not received\n" );
ok( count, "WM_DRAWCLIPBOARD not received\n" );
count = SendMessageA( win, WM_USER+2, 0, 0 );
todo_wine ok( count || broken(!pAddClipboardFormatListener), "WM_CLIPBOARDUPDATE not received\n" );
......
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