Author: mjansen
Date: Fri Aug 18 17:18:46 2017
New Revision: 75617
URL:
http://svn.reactos.org/svn/reactos?rev=75617&view=rev
Log:
[OLE32] Do not crash on an invalid / empty clipboard.
CORE-12302
Modified:
trunk/reactos/dll/win32/ole32/clipboard.c
Modified: trunk/reactos/dll/win32/ole32/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ole32/clipboard.…
==============================================================================
--- trunk/reactos/dll/win32/ole32/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ole32/clipboard.c [iso-8859-1] Fri Aug 18 17:18:46 2017
@@ -2018,6 +2018,10 @@
{
case WM_RENDERFORMAT:
{
+#ifdef __REACTOS__
+ if (clipbrd->cached_enum)
+ {
+#endif
UINT cf = wparam;
ole_priv_data_entry *entry;
@@ -2026,7 +2030,9 @@
if(entry)
render_format(clipbrd->src_data, &entry->fmtetc);
-
+#ifdef __REACTOS__
+ }
+#endif
break;
}