user32/tests: Fix test failures on 64-bit testbot VMs.

Sebastian Lackner sebastian at
Tue Oct 11 11:11:19 CDT 2016

Signed-off-by: Sebastian Lackner <sebastian at>

Thanks Alexandre for pointing those out.

Win64 testbots unfortunately throw a STATUS_HEAP_CORRUPTION exception when
running this test (which is not really surprising, because the pointer is
supposed to be freed).

GlobalLock does not trigger the crash, but also does not provide correct
results. Catching the exception might be possible, but is much more
complicated. ;) For now, just disable the corresponding test on _WIN64.

 dlls/user32/tests/clipboard.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/user32/tests/clipboard.c b/dlls/user32/tests/clipboard.c
index 69bdba8..17fc028 100644
--- a/dlls/user32/tests/clipboard.c
+++ b/dlls/user32/tests/clipboard.c
@@ -1737,7 +1737,10 @@ static void test_handles( HWND hwnd )
     h = SetClipboardData( 0xdeadbeef, hfixed );
     ok( h == hfixed, "got %p\n", h );
     ok( is_fixed( h ), "expected fixed mem %p\n", h );
+#ifndef _WIN64
+    /* testing if hfixed2 is freed triggers an exception on Win64 */
     ok( is_freed( hfixed2 ) || broken( !is_freed( hfixed2 )) /* < Vista */, "expected freed mem %p\n", hfixed2 );
     r = CloseClipboard();
     ok( r, "gle %d\n", GetLastError() );

More information about the wine-patches mailing list