From: Giannis Adamopoulos Date: Fri, 18 Aug 2017 17:18:17 +0000 (+0000) Subject: [WIN32K] -NtUserEmptyClipboard: Change its behaviour to wait for WM_DESTROYCLIPBOARD... X-Git-Tag: backups/GSoC_2017/rapps@75905~4^2~102 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=8998ffaca274edb06f5e0cd3f351cdaef03d4487 [WIN32K] -NtUserEmptyClipboard: Change its behaviour to wait for WM_DESTROYCLIPBOARD to return so it behaves like windows and our ole32 doesn't trip on its assumptions that everything works fine. A test will be written soon to prove that this is correct. CORE-12302 svn path=/trunk/; revision=75616 --- diff --git a/reactos/win32ss/user/ntuser/clipboard.c b/reactos/win32ss/user/ntuser/clipboard.c index c29a1c3c3d3..9790b867467 100644 --- a/reactos/win32ss/user/ntuser/clipboard.c +++ b/reactos/win32ss/user/ntuser/clipboard.c @@ -680,7 +680,7 @@ UserEmptyClipboard(VOID) { TRACE("Clipboard: WM_DESTROYCLIPBOARD to %p\n", pWinStaObj->spwndClipOwner->head.h); // For 32-bit applications this message is sent as a notification - co_IntSendMessageNoWait(pWinStaObj->spwndClipOwner->head.h, WM_DESTROYCLIPBOARD, 0, 0); + co_IntSendMessage(pWinStaObj->spwndClipOwner->head.h, WM_DESTROYCLIPBOARD, 0, 0); } pWinStaObj->spwndClipOwner = pWinStaObj->spwndClipOpen;