user32: Partially fix clipboard viewer infinite recursion bug.
This commit is contained in:
parent
8c6353ea7e
commit
6c6b15f2d4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue