mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +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:
parent
a41482aaa8
commit
eb3f29d2ad
1 changed files with 2 additions and 1 deletions
|
@ -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())))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue