Author: rharabien
Date: Fri Sep 9 15:24:14 2011
New Revision: 53657
URL:
http://svn.reactos.org/svn/reactos?rev=53657&view=rev
Log:
[USER32]
- Fix ole32:clipboard winetest regression
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] Fri Sep 9 15:24:14
2011
@@ -206,6 +206,9 @@
GETCLIPBDATA gcd;
hData = NtUserGetClipboardData(uFormat, &gcd);
+ if (!hData)
+ return NULL;
+
if (gcd.fGlobalHandle)
{
HANDLE hGlobal;
@@ -242,7 +245,7 @@
pNewData = IntSynthesizeWideChar(pData, cbData, gcd.uFmtRet ==
CF_OEMTEXT);
break;
default:
- FIXME("Format: %u\n", uFormat);
+ FIXME("Format: %u != %u\n", uFormat, gcd.uFmtRet);
}
/* Is it a global handle? */