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
5274f855
Commit
5274f855
authored
Oct 09, 2013
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Oct 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Use BOOL type where appropriate.
parent
0b58ab7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
sock.c
dlls/ws2_32/tests/sock.c
+5
-4
No files found.
dlls/ws2_32/tests/sock.c
View file @
5274f855
...
...
@@ -1382,7 +1382,8 @@ static void test_ip_pktinfo(void)
struct
sockaddr_in
s1addr
,
s2addr
,
s3addr
;
GUID
WSARecvMsg_GUID
=
WSAID_WSARECVMSG
;
LPFN_WSARECVMSG
pWSARecvMsg
=
NULL
;
unsigned
int
rc
,
foundhdr
,
yes
=
1
;
unsigned
int
rc
,
yes
=
1
;
BOOL
foundhdr
;
DWORD
dwBytes
,
dwSize
,
dwFlags
;
socklen_t
addrlen
;
WSACMSGHDR
*
cmsg
;
...
...
@@ -3836,7 +3837,7 @@ static void test_ioctlsocket(void)
closesocket
(
sock
);
}
static
int
drain_pause
=
0
;
static
BOOL
drain_pause
=
FALSE
;
static
DWORD
WINAPI
drain_socket_thread
(
LPVOID
arg
)
{
char
buffer
[
1024
];
...
...
@@ -4664,12 +4665,12 @@ static void test_events(int useMessages)
* take some of it, and we will get a short write. This will trigger
* another FD_WRITE event as soon as data is sent and more space becomes
* available, but not any earlier. */
drain_pause
=
1
;
drain_pause
=
TRUE
;
do
{
ret
=
send
(
src
,
buffer
,
bufferSize
,
0
);
}
while
(
ret
==
bufferSize
);
drain_pause
=
0
;
drain_pause
=
FALSE
;
if
(
ret
>=
0
||
WSAGetLastError
()
==
WSAEWOULDBLOCK
)
{
Sleep
(
400
);
/* win9x */
...
...
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