Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
51f8c75c
Commit
51f8c75c
authored
May 23, 2023
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Remove superfluous casts to self.
parent
e7845fc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
afd.c
dlls/ws2_32/tests/afd.c
+9
-9
sock.c
dlls/ws2_32/tests/sock.c
+1
-6
No files found.
dlls/ws2_32/tests/afd.c
View file @
51f8c75c
...
...
@@ -1429,7 +1429,7 @@ static void test_recv(void)
ret
=
listen
(
listener
,
1
);
ok
(
!
ret
,
"got error %u
\n
"
,
WSAGetLastError
());
len
=
sizeof
(
addr
);
ret
=
getsockname
(
listener
,
(
struct
sockaddr
*
)
&
addr
,
&
len
);
ret
=
getsockname
(
listener
,
&
addr
,
&
len
);
ok
(
!
ret
,
"got error %u
\n
"
,
WSAGetLastError
());
memset
(
&
io
,
0
,
sizeof
(
io
));
...
...
@@ -1439,7 +1439,7 @@ static void test_recv(void)
ok
(
!
io
.
Information
,
"got information %#Ix
\n
"
,
io
.
Information
);
client
=
socket
(
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
);
ret
=
connect
(
client
,
(
struct
sockaddr
*
)
&
addr
,
sizeof
(
addr
));
ret
=
connect
(
client
,
&
addr
,
sizeof
(
addr
));
ok
(
!
ret
,
"got error %u
\n
"
,
WSAGetLastError
());
server
=
accept
(
listener
,
NULL
,
NULL
);
ok
(
server
!=
-
1
,
"got error %u
\n
"
,
WSAGetLastError
());
...
...
@@ -1717,7 +1717,7 @@ static void test_recv(void)
ret
=
bind
(
client
,
(
const
struct
sockaddr
*
)
&
bind_addr
,
sizeof
(
bind_addr
));
ok
(
!
ret
,
"got error %u
\n
"
,
WSAGetLastError
());
len
=
sizeof
(
addr
);
ret
=
getsockname
(
client
,
(
struct
sockaddr
*
)
&
addr
,
&
len
);
ret
=
getsockname
(
client
,
&
addr
,
&
len
);
ok
(
!
ret
,
"got error %u
\n
"
,
WSAGetLastError
());
memset
(
buffer
,
0xcc
,
sizeof
(
buffer
));
...
...
@@ -1725,7 +1725,7 @@ static void test_recv(void)
IOCTL_AFD_RECV
,
&
params
,
sizeof
(
params
),
NULL
,
0
);
ok
(
ret
==
STATUS_PENDING
,
"got %#x
\n
"
,
ret
);
ret
=
sendto
(
server
,
"data"
,
5
,
0
,
(
struct
sockaddr
*
)
&
addr
,
sizeof
(
addr
));
ret
=
sendto
(
server
,
"data"
,
5
,
0
,
&
addr
,
sizeof
(
addr
));
ok
(
ret
==
5
,
"got %d
\n
"
,
ret
);
ret
=
WaitForSingleObject
(
event
,
200
);
...
...
@@ -1741,7 +1741,7 @@ static void test_recv(void)
IOCTL_AFD_RECV
,
&
params
,
sizeof
(
params
),
NULL
,
0
);
ok
(
ret
==
STATUS_PENDING
,
"got %#x
\n
"
,
ret
);
ret
=
sendto
(
server
,
"moredata"
,
9
,
0
,
(
struct
sockaddr
*
)
&
addr
,
sizeof
(
addr
));
ret
=
sendto
(
server
,
"moredata"
,
9
,
0
,
&
addr
,
sizeof
(
addr
));
ok
(
ret
==
9
,
"got %d
\n
"
,
ret
);
ret
=
WaitForSingleObject
(
event
,
200
);
...
...
@@ -1750,7 +1750,7 @@ static void test_recv(void)
ok
(
io
.
Information
==
6
,
"got %#Ix
\n
"
,
io
.
Information
);
ok
(
!
memcmp
(
buffer
,
"mo
\xcc
reda
\xcc
"
,
7
),
"got %s
\n
"
,
debugstr_an
(
buffer
,
io
.
Information
));
ret
=
sendto
(
server
,
"moredata"
,
9
,
0
,
(
struct
sockaddr
*
)
&
addr
,
sizeof
(
addr
));
ret
=
sendto
(
server
,
"moredata"
,
9
,
0
,
&
addr
,
sizeof
(
addr
));
ok
(
ret
==
9
,
"got %d
\n
"
,
ret
);
/* wait for the data to be available */
...
...
@@ -2352,7 +2352,7 @@ static void test_getsockname(void)
ok
(
!
io
.
Status
,
"got %#lx
\n
"
,
io
.
Status
);
ok
(
io
.
Information
==
sizeof
(
addr
),
"got %#Ix
\n
"
,
io
.
Information
);
len
=
sizeof
(
addr2
);
ret
=
getsockname
(
client
,
(
struct
sockaddr
*
)
&
addr2
,
&
len
);
ret
=
getsockname
(
client
,
&
addr2
,
&
len
);
ok
(
!
ret
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
!
memcmp
(
&
addr
,
&
addr2
,
sizeof
(
struct
sockaddr
)),
"addresses didn't match
\n
"
);
...
...
@@ -2364,7 +2364,7 @@ static void test_getsockname(void)
ok
(
!
io
.
Status
,
"got %#lx
\n
"
,
io
.
Status
);
ok
(
io
.
Information
==
sizeof
(
addr
),
"got %#Ix
\n
"
,
io
.
Information
);
len
=
sizeof
(
addr2
);
ret
=
getsockname
(
server
,
(
struct
sockaddr
*
)
&
addr2
,
&
len
);
ret
=
getsockname
(
server
,
&
addr2
,
&
len
);
ok
(
!
ret
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
!
memcmp
(
&
addr
,
&
addr2
,
sizeof
(
struct
sockaddr
)),
"addresses didn't match
\n
"
);
...
...
@@ -2392,7 +2392,7 @@ static void test_getsockname(void)
ok
(
!
io
.
Status
,
"got %#lx
\n
"
,
io
.
Status
);
ok
(
io
.
Information
==
sizeof
(
addr
),
"got %#Ix
\n
"
,
io
.
Information
);
len
=
sizeof
(
addr2
);
ret
=
getsockname
(
client
,
(
struct
sockaddr
*
)
&
addr2
,
&
len
);
ret
=
getsockname
(
client
,
&
addr2
,
&
len
);
ok
(
!
ret
,
"got error %u
\n
"
,
WSAGetLastError
());
ok
(
!
memcmp
(
&
addr
,
&
addr2
,
sizeof
(
struct
sockaddr
)),
"addresses didn't match
\n
"
);
...
...
dlls/ws2_32/tests/sock.c
View file @
51f8c75c
...
...
@@ -836,12 +836,7 @@ static VOID WINAPI simple_mixed_client ( client_params *par )
((
struct
sockaddr_in
*
)
&
test
)
->
sin_addr
.
s_addr
=
inet_addr
(
"0.0.0.0"
);
/* Receive data echoed back & check it */
n_recvd
=
do_synchronous_recvfrom
(
mem
->
s
,
mem
->
recv_buf
,
n_expected
,
0
,
(
struct
sockaddr
*
)
&
test
,
&
fromLen
,
n_recvd
=
do_synchronous_recvfrom
(
mem
->
s
,
mem
->
recv_buf
,
n_expected
,
0
,
&
test
,
&
fromLen
,
par
->
buflen
);
ok
(
n_recvd
==
n_expected
,
"simple_client (%x): received less data than expected: %d of %d
\n
"
,
id
,
n_recvd
,
n_expected
);
...
...
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