Author: gadamopoulos
Date: Mon Dec 14 16:41:58 2009
New Revision: 44577
URL:
http://svn.reactos.org/svn/reactos?rev=44577&view=rev
Log:
[user32]
SetClipboardData: fix return value
Fixes one user32:clipbloard test
Modified:
trunk/reactos/dll/win32/user32/windows/clipboard.c
Modified: trunk/reactos/dll/win32/user32/windows/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/c…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/clipboard.c [iso-8859-1] Mon Dec 14 16:41:58
2009
@@ -270,6 +270,12 @@
{
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);
}