Author: tfaber
Date: Thu Jun 15 12:16:09 2017
New Revision: 75045
URL:
http://svn.reactos.org/svn/reactos?rev=75045&view=rev
Log:
[WIN32K:NTUSER]
- Fix clipboard lock check in UserSetClipboardData. Fixes 24 user32:clipboard tests.
CORE-13414 #resolve
Modified:
trunk/reactos/win32ss/user/ntuser/clipboard.c
Modified: trunk/reactos/win32ss/user/ntuser/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/clipbo…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] Thu Jun 15 12:16:09 2017
@@ -987,16 +987,7 @@
if (!pWinStaObj)
goto cleanup;
- /*
- * Check if the clipboard is correctly opened:
- * - in case of normal rendering, we must have opened the clipboard;
- * - in case of delayed rendering, the clipboard must be already opened
- * by another application, but we need to be the clipboard owner.
- */
- if (!fmt ||
- (!pWinStaObj->fInDelayedRendering &&
!IntIsClipboardOpenByMe(pWinStaObj)) ||
- (pWinStaObj->fInDelayedRendering && !(pWinStaObj->ptiClipLock
&&
- pWinStaObj->spwndClipOwner->head.pti ==
PsGetCurrentThreadWin32Thread())))
+ if (!fmt || !pWinStaObj->ptiClipLock)
{
ERR("Access denied!\n");
EngSetLastError(ERROR_CLIPBOARD_NOT_OPEN);