mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[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:
@@ -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())))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user