Author: tfaber
Date: Fri Jun 9 14:08:50 2017
New Revision: 74974
URL:
http://svn.reactos.org/svn/reactos?rev=74974&view=rev
Log:
[USER32_WINETEST]
- Hackfix crash in user32:clipboard test due to NULL pointer returned from
GetClipboardData.
Modified:
trunk/rostests/winetests/user32/clipboard.c
Modified: trunk/rostests/winetests/user32/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/user32/clipboar…
==============================================================================
--- trunk/rostests/winetests/user32/clipboard.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/user32/clipboard.c [iso-8859-1] Fri Jun 9 14:08:50 2017
@@ -2004,11 +2004,17 @@
trace( "palette %p\n", h );
h = GetClipboardData( CF_METAFILEPICT );
ok( is_fixed( h ), "expected fixed mem %p\n", h );
+#ifdef __REACTOS__
+ if (h != NULL)
+#endif
ok( GetObjectType( ((METAFILEPICT *)h)->hMF ) == OBJ_METAFILE,
"wrong object %p\n", ((METAFILEPICT *)h)->hMF );
trace( "metafile %p\n", h );
h = GetClipboardData( CF_DSPMETAFILEPICT );
ok( is_fixed( h ), "expected fixed mem %p\n", h );
+#ifdef __REACTOS__
+ if (h != NULL)
+#endif
ok( GetObjectType( ((METAFILEPICT *)h)->hMF ) == OBJ_METAFILE,
"wrong object %p\n", ((METAFILEPICT *)h)->hMF );
trace( "metafile2 %p\n", h );