Skip interthread message test under win9x, it causes a crash there
Dmitry Timoshkov
dmitry at baikal.ru
Wed Oct 6 01:52:01 CDT 2004
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Skip interthread message test under win9x, it causes a crash there.
--- cvs/hq/wine/dlls/user/tests/msg.c Wed Oct 06 00:18:02 2004
+++ wine/dlls/user/tests/msg.c Wed Oct 06 06:46:10 2004
@@ -2744,7 +2744,12 @@ static void test_interthread_messages(vo
int len, expected_len;
struct wnd_event wnd_event;
- wnd_event.event = CreateEvent(NULL, 0, 0, NULL);
+ wnd_event.event = CreateEventW(NULL, 0, 0, NULL);
+ if (!wnd_event.event)
+ {
+ trace("skipping interthread message test under win9x\n");
+ return;
+ }
hThread = CreateThread(NULL, 0, thread_proc, &wnd_event, 0, &tid);
ok(hThread != NULL, "CreateThread failed, error %ld\n", GetLastError());
@@ -2777,10 +2782,11 @@ static void test_interthread_messages(vo
ok(!len && GetLastError() == ERROR_MESSAGE_SYNC_ONLY,
"DispatchMessageA(WM_GETTEXT) succeded on another thread window: ret %d, error %ld\n", len, GetLastError());
+ /* the following test causes an exception in user.exe under win9x */
msg.hwnd = wnd_event.hwnd;
msg.message = WM_TIMER;
msg.wParam = 0;
- msg.lParam = GetWindowLongW(wnd_event.hwnd,GWL_WNDPROC);
+ msg.lParam = GetWindowLongPtrA(wnd_event.hwnd, GWLP_WNDPROC);
SetLastError(0xdeadbeef);
len = DispatchMessageA(&msg);
ok(!len && GetLastError() == 0xdeadbeef,
More information about the wine-patches
mailing list