Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ea17a919
Commit
ea17a919
authored
Sep 04, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Sep 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Use CreateEventA for win9x.
parent
81effcf3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sock.c
dlls/ws2_32/tests/sock.c
+6
-6
No files found.
dlls/ws2_32/tests/sock.c
View file @
ea17a919
...
@@ -887,9 +887,9 @@ static void do_test( test_setup *test )
...
@@ -887,9 +887,9 @@ static void do_test( test_setup *test )
DWORD
i
,
n
=
min
(
test
->
general
.
n_clients
,
MAX_CLIENTS
);
DWORD
i
,
n
=
min
(
test
->
general
.
n_clients
,
MAX_CLIENTS
);
DWORD
wait
;
DWORD
wait
;
server_ready
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
server_ready
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
for
(
i
=
0
;
i
<=
n
;
i
++
)
for
(
i
=
0
;
i
<=
n
;
i
++
)
client_ready
[
i
]
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
client_ready
[
i
]
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
StartServer
(
test
->
srv
,
&
test
->
general
,
&
test
->
srv_params
);
StartServer
(
test
->
srv
,
&
test
->
general
,
&
test
->
srv_params
);
StartClients
(
test
->
clt
,
&
test
->
general
,
&
test
->
clt_params
);
StartClients
(
test
->
clt
,
&
test
->
general
,
&
test
->
clt_params
);
...
@@ -1675,7 +1675,7 @@ static void test_select(void)
...
@@ -1675,7 +1675,7 @@ static void test_select(void)
thread_params
.
s
=
fdRead
;
thread_params
.
s
=
fdRead
;
thread_params
.
ReadKilled
=
FALSE
;
thread_params
.
ReadKilled
=
FALSE
;
server_ready
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
server_ready
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
thread_handle
=
CreateThread
(
NULL
,
0
,
(
LPTHREAD_START_ROUTINE
)
&
SelectReadThread
,
&
thread_params
,
0
,
&
id
);
thread_handle
=
CreateThread
(
NULL
,
0
,
(
LPTHREAD_START_ROUTINE
)
&
SelectReadThread
,
&
thread_params
,
0
,
&
id
);
ok
(
(
thread_handle
!=
NULL
),
"CreateThread failed unexpectedly: %d
\n
"
,
GetLastError
());
ok
(
(
thread_handle
!=
NULL
),
"CreateThread failed unexpectedly: %d
\n
"
,
GetLastError
());
...
@@ -1735,7 +1735,7 @@ static void test_accept(void)
...
@@ -1735,7 +1735,7 @@ static void test_accept(void)
goto
done
;
goto
done
;
}
}
server_ready
=
CreateEvent
W
(
NULL
,
TRUE
,
FALSE
,
NULL
);
server_ready
=
CreateEvent
A
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
server_ready
==
INVALID_HANDLE_VALUE
)
if
(
server_ready
==
INVALID_HANDLE_VALUE
)
{
{
trace
(
"error creating event: %d
\n
"
,
GetLastError
());
trace
(
"error creating event: %d
\n
"
,
GetLastError
());
...
@@ -2069,10 +2069,10 @@ static void test_write_events(void)
...
@@ -2069,10 +2069,10 @@ static void test_write_events(void)
goto
end
;
goto
end
;
}
}
hEvent
=
CreateEvent
W
(
NULL
,
FALSE
,
TRUE
,
NULL
);
hEvent
=
CreateEvent
A
(
NULL
,
FALSE
,
TRUE
,
NULL
);
if
(
hEvent
==
INVALID_HANDLE_VALUE
)
if
(
hEvent
==
INVALID_HANDLE_VALUE
)
{
{
ok
(
0
,
"CreateEvent
W
failed, error %d
\n
"
,
GetLastError
());
ok
(
0
,
"CreateEvent
A
failed, error %d
\n
"
,
GetLastError
());
goto
end
;
goto
end
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment