Paul Vriens : ws2_32/tests: Use CreateEventA for win9x.
Alexandre Julliard
julliard at winehq.org
Fri Sep 5 06:57:48 CDT 2008
Module: wine
Branch: master
Commit: ea17a9192c2de79b81f5d246c9c367ebe247bc11
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea17a9192c2de79b81f5d246c9c367ebe247bc11
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Thu Sep 4 17:49:13 2008 +0200
ws2_32/tests: Use CreateEventA for win9x.
---
dlls/ws2_32/tests/sock.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index e2d2162..3a8d42a 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -887,9 +887,9 @@ static void do_test( test_setup *test )
DWORD i, n = min (test->general.n_clients, MAX_CLIENTS);
DWORD wait;
- server_ready = CreateEventW ( NULL, TRUE, FALSE, NULL );
+ server_ready = CreateEventA ( NULL, TRUE, FALSE, NULL );
for (i = 0; i <= n; i++)
- client_ready[i] = CreateEventW ( NULL, TRUE, FALSE, NULL );
+ client_ready[i] = CreateEventA ( NULL, TRUE, FALSE, NULL );
StartServer ( test->srv, &test->general, &test->srv_params );
StartClients ( test->clt, &test->general, &test->clt_params );
@@ -1675,7 +1675,7 @@ static void test_select(void)
thread_params.s = fdRead;
thread_params.ReadKilled = FALSE;
- server_ready = CreateEventW(NULL, TRUE, FALSE, NULL);
+ server_ready = CreateEventA(NULL, TRUE, FALSE, NULL);
thread_handle = CreateThread (NULL, 0, (LPTHREAD_START_ROUTINE) &SelectReadThread, &thread_params, 0, &id );
ok ( (thread_handle != NULL), "CreateThread failed unexpectedly: %d\n", GetLastError());
@@ -1735,7 +1735,7 @@ static void test_accept(void)
goto done;
}
- server_ready = CreateEventW(NULL, TRUE, FALSE, NULL);
+ server_ready = CreateEventA(NULL, TRUE, FALSE, NULL);
if (server_ready == INVALID_HANDLE_VALUE)
{
trace("error creating event: %d\n", GetLastError());
@@ -2069,10 +2069,10 @@ static void test_write_events(void)
goto end;
}
- hEvent = CreateEventW(NULL, FALSE, TRUE, NULL);
+ hEvent = CreateEventA(NULL, FALSE, TRUE, NULL);
if (hEvent == INVALID_HANDLE_VALUE)
{
- ok(0, "CreateEventW failed, error %d\n", GetLastError());
+ ok(0, "CreateEventA failed, error %d\n", GetLastError());
goto end;
}
More information about the wine-cvs
mailing list