[PATCH] user32: fixed a unreliable test
Marcus Meissner <[email protected]>
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <[email protected]> |
From: Marcus Meissner <[email protected]> Signed-off-by: Marcus Meissner <[email protected]> --- 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 f0a24cb274..b0dac471f3 100644 --- a/dlls/user32/tests/clipboard.c +++ b/dlls/user32/tests/clipboard.c @@ -1759,10 +1759,13 @@ 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 ); + if (0) { + /* This test is unreliable / crashes */ #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 ); #endif + } r = CloseClipboard(); ok( r, "gle %d\n", GetLastError() ); -- 2.14.3