user32/tests: Disable custom GDI clipboard formats tests on 64-bit.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ccc1d346a6
commit
e3a8c3a869
|
@ -28,6 +28,7 @@
|
||||||
static BOOL (WINAPI *pAddClipboardFormatListener)(HWND hwnd);
|
static BOOL (WINAPI *pAddClipboardFormatListener)(HWND hwnd);
|
||||||
static DWORD (WINAPI *pGetClipboardSequenceNumber)(void);
|
static DWORD (WINAPI *pGetClipboardSequenceNumber)(void);
|
||||||
|
|
||||||
|
static const BOOL is_win64 = sizeof(void *) > sizeof(int);
|
||||||
static int thread_from_line;
|
static int thread_from_line;
|
||||||
static char *argv0;
|
static char *argv0;
|
||||||
|
|
||||||
|
@ -792,12 +793,16 @@ static void test_handles( HWND hwnd )
|
||||||
h = SetClipboardData( CF_PALETTE, palette );
|
h = SetClipboardData( CF_PALETTE, palette );
|
||||||
ok( h == palette, "got %p\n", h );
|
ok( h == palette, "got %p\n", h );
|
||||||
ok( GetObjectType( h ) == OBJ_PAL, "expected palette %p\n", h );
|
ok( GetObjectType( h ) == OBJ_PAL, "expected palette %p\n", h );
|
||||||
|
/* setting custom GDI formats crashes on 64-bit Windows */
|
||||||
|
if (!is_win64)
|
||||||
|
{
|
||||||
h = SetClipboardData( CF_GDIOBJFIRST + 1, bitmap2 );
|
h = SetClipboardData( CF_GDIOBJFIRST + 1, bitmap2 );
|
||||||
ok( h == bitmap2, "got %p\n", h );
|
ok( h == bitmap2, "got %p\n", h );
|
||||||
ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
|
ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
|
||||||
h = SetClipboardData( CF_GDIOBJFIRST + 2, pen );
|
h = SetClipboardData( CF_GDIOBJFIRST + 2, pen );
|
||||||
ok( h == pen, "got %p\n", h );
|
ok( h == pen, "got %p\n", h );
|
||||||
ok( GetObjectType( h ) == OBJ_PEN, "expected pen %p\n", h );
|
ok( GetObjectType( h ) == OBJ_PEN, "expected pen %p\n", h );
|
||||||
|
}
|
||||||
|
|
||||||
data = GetClipboardData( CF_TEXT );
|
data = GetClipboardData( CF_TEXT );
|
||||||
ok( data == htext, "wrong data %p\n", data );
|
ok( data == htext, "wrong data %p\n", data );
|
||||||
|
@ -853,10 +858,13 @@ static void test_handles( HWND hwnd )
|
||||||
ok( data == bitmap, "expected bitmap %p\n", data );
|
ok( data == bitmap, "expected bitmap %p\n", data );
|
||||||
data = GetClipboardData( CF_PALETTE );
|
data = GetClipboardData( CF_PALETTE );
|
||||||
ok( data == palette, "expected palette %p\n", data );
|
ok( data == palette, "expected palette %p\n", data );
|
||||||
|
if (!is_win64)
|
||||||
|
{
|
||||||
data = GetClipboardData( CF_GDIOBJFIRST + 1 );
|
data = GetClipboardData( CF_GDIOBJFIRST + 1 );
|
||||||
ok( data == bitmap2, "expected bitmap2 %p\n", data );
|
ok( data == bitmap2, "expected bitmap2 %p\n", data );
|
||||||
data = GetClipboardData( CF_GDIOBJFIRST + 2 );
|
data = GetClipboardData( CF_GDIOBJFIRST + 2 );
|
||||||
ok( data == pen, "expected pen %p\n", data );
|
ok( data == pen, "expected pen %p\n", data );
|
||||||
|
}
|
||||||
data = GetClipboardData( CF_DIB );
|
data = GetClipboardData( CF_DIB );
|
||||||
ok( is_fixed( data ), "expected fixed mem %p\n", data );
|
ok( is_fixed( data ), "expected fixed mem %p\n", data );
|
||||||
data = GetClipboardData( CF_DIBV5 );
|
data = GetClipboardData( CF_DIBV5 );
|
||||||
|
@ -915,6 +923,8 @@ static DWORD WINAPI test_handles_thread2( void *arg )
|
||||||
ok( GetObjectType( h ) == OBJ_PAL, "expected palette %p\n", h );
|
ok( GetObjectType( h ) == OBJ_PAL, "expected palette %p\n", h );
|
||||||
ok( h == palette, "different palette %p / %p\n", h, palette );
|
ok( h == palette, "different palette %p / %p\n", h, palette );
|
||||||
trace( "palette %p\n", h );
|
trace( "palette %p\n", h );
|
||||||
|
if (!is_win64)
|
||||||
|
{
|
||||||
h = GetClipboardData( CF_GDIOBJFIRST + 1 );
|
h = GetClipboardData( CF_GDIOBJFIRST + 1 );
|
||||||
ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
|
ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
|
||||||
ok( h == bitmap2, "different bitmap %p / %p\n", h, bitmap2 );
|
ok( h == bitmap2, "different bitmap %p / %p\n", h, bitmap2 );
|
||||||
|
@ -923,6 +933,7 @@ static DWORD WINAPI test_handles_thread2( void *arg )
|
||||||
ok( GetObjectType( h ) == OBJ_PEN, "expected pen %p\n", h );
|
ok( GetObjectType( h ) == OBJ_PEN, "expected pen %p\n", h );
|
||||||
ok( h == pen, "different pen %p / %p\n", h, pen );
|
ok( h == pen, "different pen %p / %p\n", h, pen );
|
||||||
trace( "pen %p\n", h );
|
trace( "pen %p\n", h );
|
||||||
|
}
|
||||||
h = GetClipboardData( CF_DIB );
|
h = GetClipboardData( CF_DIB );
|
||||||
ok( is_fixed( h ), "expected fixed mem %p\n", h );
|
ok( is_fixed( h ), "expected fixed mem %p\n", h );
|
||||||
h = GetClipboardData( CF_DIBV5 );
|
h = GetClipboardData( CF_DIBV5 );
|
||||||
|
@ -942,7 +953,7 @@ static void test_handles_process( const char *str )
|
||||||
r = OpenClipboard( 0 );
|
r = OpenClipboard( 0 );
|
||||||
ok( r, "gle %d\n", GetLastError() );
|
ok( r, "gle %d\n", GetLastError() );
|
||||||
h = GetClipboardData( CF_TEXT );
|
h = GetClipboardData( CF_TEXT );
|
||||||
ok( is_fixed( h ), "expected fixed mem %p\n", h );
|
todo_wine_if( !h ) ok( is_fixed( h ), "expected fixed mem %p\n", h );
|
||||||
ptr = GlobalLock( h );
|
ptr = GlobalLock( h );
|
||||||
if (ptr) todo_wine ok( !strcmp( str, ptr ), "wrong data '%.5s'\n", ptr );
|
if (ptr) todo_wine ok( !strcmp( str, ptr ), "wrong data '%.5s'\n", ptr );
|
||||||
GlobalUnlock( h );
|
GlobalUnlock( h );
|
||||||
|
@ -1001,10 +1012,13 @@ static void test_data_handles(void)
|
||||||
ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
|
ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
|
||||||
h = SetClipboardData( CF_PALETTE, palette );
|
h = SetClipboardData( CF_PALETTE, palette );
|
||||||
ok( GetObjectType( h ) == OBJ_PAL, "expected palette %p\n", h );
|
ok( GetObjectType( h ) == OBJ_PAL, "expected palette %p\n", h );
|
||||||
|
if (!is_win64)
|
||||||
|
{
|
||||||
h = SetClipboardData( CF_GDIOBJFIRST + 1, bitmap2 );
|
h = SetClipboardData( CF_GDIOBJFIRST + 1, bitmap2 );
|
||||||
ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
|
ok( GetObjectType( h ) == OBJ_BITMAP, "expected bitmap %p\n", h );
|
||||||
h = SetClipboardData( CF_GDIOBJFIRST + 2, pen );
|
h = SetClipboardData( CF_GDIOBJFIRST + 2, pen );
|
||||||
ok( GetObjectType( h ) == OBJ_PEN, "expected pen %p\n", h );
|
ok( GetObjectType( h ) == OBJ_PEN, "expected pen %p\n", h );
|
||||||
|
}
|
||||||
r = CloseClipboard();
|
r = CloseClipboard();
|
||||||
ok( r, "gle %d\n", GetLastError() );
|
ok( r, "gle %d\n", GetLastError() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue