[WIN32K:NTUSER]

- Fail UserSetClipboardData in case of 0 format, as shown by user32:clipboard test

svn path=/trunk/; revision=75024
This commit is contained in:
Thomas Faber 2017-06-13 14:11:26 +00:00
parent a41482aaa8
commit eb3f29d2ad

View file

@ -993,7 +993,8 @@ UserSetClipboardData(UINT fmt, HANDLE hData, PSETCLIPBDATA scd)
* - 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())))
{