Module: wine Branch: master Commit: fda70b97f4d2fac1a73f8f3cba6d036a40f43ea6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fda70b97f4d2fac1a73f8f3cba...
Author: Paul Vriens Paul.Vriens.Wine@gmail.com Date: Wed Sep 30 21:00:33 2009 +0200
user32/tests: Don't crash on Win9x/WinMe/NT4.
---
dlls/user32/tests/msg.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index aeb1b62..57931cf 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -7862,7 +7862,21 @@ static void test_timers(void)
ok( KillTimer(info.hWnd, TIMER_ID), "KillTimer failed\n");
+ ok(DestroyWindow(info.hWnd), "failed to destroy window\n"); + /* Test timer callback with crash */ + SetLastError(0xdeadbeef); + info.hWnd = CreateWindowW(testWindowClassW, NULL, + WS_OVERLAPPEDWINDOW , + CW_USEDEFAULT, CW_USEDEFAULT, 300, 300, 0, + NULL, NULL, 0); + if ((!info.hWnd && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) || /* Win9x/Me */ + (!pGetMenuInfo)) /* Win95/NT4 */ + { + win_skip("Test would crash on Win9x/WinMe/NT4\n"); + DestroyWindow(info.hWnd); + return; + } info.id = SetTimer(info.hWnd, TIMER_ID, 0, tfunc_crash); ok(info.id, "SetTimer failed\n"); Sleep(150);