mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[USER32_WINETEST]
- Hackfix crash in user32:clipboard test due to NULL pointer returned from GetClipboardData. svn path=/trunk/; revision=74974
This commit is contained in:
parent
3cbe1ae789
commit
c16f5dc411
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue