mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 12:23:28 +00:00
[user32]
SetClipboardData: fix return value Fixes one user32:clipbloard test svn path=/trunk/; revision=44577
This commit is contained in:
@@ -270,6 +270,12 @@ SetClipboardData(UINT uFormat, HANDLE hMem)
|
||||
{
|
||||
size = GlobalSize(hMem);
|
||||
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?
|
||||
GlobalUnlock(hMem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user