Author: tfaber
Date: Tue Jun 13 14:11:26 2017
New Revision: 75024
URL:
http://svn.reactos.org/svn/reactos?rev=75024&view=rev
Log:
[WIN32K:NTUSER]
- Fail UserSetClipboardData in case of 0 format, as shown by user32:clipboard test
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] Tue Jun 13 14:11:26 2017
@@ -993,7 +993,8 @@
* - in case of delayed rendering, the clipboard must be already opened
* by another application, but we need to be the clipboard owner.
*/
- if ((!pWinStaObj->fInDelayedRendering &&
!IntIsClipboardOpenByMe(pWinStaObj)) ||
+ if (!fmt ||
+ (!pWinStaObj->fInDelayedRendering &&
!IntIsClipboardOpenByMe(pWinStaObj)) ||
(pWinStaObj->fInDelayedRendering && !(pWinStaObj->ptiClipLock
&&
pWinStaObj->spwndClipOwner->head.pti ==
PsGetCurrentThreadWin32Thread())))
{