mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
[user32]
SetClipboardData: fix return value Fixes one user32:clipbloard test svn path=/trunk/; revision=44577
This commit is contained in:
parent
f755214f06
commit
e88d19a769
1 changed files with 6 additions and 0 deletions
|
@ -270,6 +270,12 @@ SetClipboardData(UINT uFormat, HANDLE hMem)
|
||||||
{
|
{
|
||||||
size = GlobalSize(hMem);
|
size = GlobalSize(hMem);
|
||||||
ret = NtUserSetClipboardData(uFormat, pMem, size);
|
ret = NtUserSetClipboardData(uFormat, pMem, size);
|
||||||
|
|
||||||
|
//On success NtUserSetClipboardData returns pMem
|
||||||
|
//however caller expects us to return hMem
|
||||||
|
if (ret == pMem)
|
||||||
|
ret = hMem;
|
||||||
|
|
||||||
//should i unlock hMem?
|
//should i unlock hMem?
|
||||||
GlobalUnlock(hMem);
|
GlobalUnlock(hMem);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue