From: Thomas Faber Date: Fri, 9 Jun 2017 14:08:50 +0000 (+0000) Subject: [USER32_WINETEST] X-Git-Tag: ReactOS-0.4.6~368 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=c16f5dc41141f66d5a682541497bd6567ea7400e [USER32_WINETEST] - Hackfix crash in user32:clipboard test due to NULL pointer returned from GetClipboardData. svn path=/trunk/; revision=74974 --- diff --git a/rostests/winetests/user32/clipboard.c b/rostests/winetests/user32/clipboard.c index 923f172601e..591a47c859a 100755 --- a/rostests/winetests/user32/clipboard.c +++ b/rostests/winetests/user32/clipboard.c @@ -2004,11 +2004,17 @@ static void test_handles_process( const char *str ) 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 );