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

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-08-25 21:55:21 +09:00
parent 57e2b75c02
commit 7888382e0a
2 changed files with 5 additions and 5 deletions

View File

@ -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;
}

View File

@ -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" );