user32: Partially fix clipboard viewer infinite recursion bug.

This commit is contained in:
Alexander Scott-Johns 2011-01-25 22:38:49 +00:00 committed by Alexandre Julliard
parent 8c6353ea7e
commit 6c6b15f2d4
1 changed files with 3 additions and 3 deletions

View File

@ -291,7 +291,7 @@ BOOL WINAPI CloseClipboard(void)
{
BOOL bRet = FALSE;
TRACE("(%d)\n", bCBHasChanged);
TRACE("() Changed=%d\n", bCBHasChanged);
if (CLIPBOARD_CloseClipboard())
{
@ -301,10 +301,10 @@ BOOL WINAPI CloseClipboard(void)
USER_Driver->pEndClipboardUpdate();
bCBHasChanged = FALSE;
if (hWndViewer)
SendMessageW(hWndViewer, WM_DRAWCLIPBOARD, (WPARAM) GetClipboardOwner(), 0);
bCBHasChanged = FALSE;
}
bRet = TRUE;