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
e9e0df23
Commit
e9e0df23
authored
Jun 03, 2011
by
Andrew Nguyen
Committed by
Alexandre Julliard
Jun 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Avoid casting a WSAAccept function pointer parameter in test_accept.
parent
c72ecb1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
socket.c
dlls/ws2_32/socket.c
+2
-2
sock.c
dlls/ws2_32/tests/sock.c
+1
-1
winsock2.h
include/winsock2.h
+3
-3
No files found.
dlls/ws2_32/socket.c
View file @
e9e0df23
...
...
@@ -5825,7 +5825,7 @@ INT WINAPI WSCDeinstallProvider(LPGUID lpProviderId, LPINT lpErrno)
* WSAAccept (WS2_32.26)
*/
SOCKET
WINAPI
WSAAccept
(
SOCKET
s
,
struct
WS_sockaddr
*
addr
,
LPINT
addrlen
,
LPCONDITIONPROC
lpfnCondition
,
DWORD
dwCallbackData
)
LPCONDITIONPROC
lpfnCondition
,
DWORD
_PTR
dwCallbackData
)
{
int
ret
=
0
,
size
=
0
;
...
...
@@ -5835,7 +5835,7 @@ SOCKET WINAPI WSAAccept( SOCKET s, struct WS_sockaddr *addr, LPINT addrlen,
SOCKET
cs
;
SOCKADDR
src_addr
,
dst_addr
;
TRACE
(
"Socket %04lx, sockaddr %p, addrlen %p, fnCondition %p, dwCallbackData %d
\n
"
,
TRACE
(
"Socket %04lx, sockaddr %p, addrlen %p, fnCondition %p, dwCallbackData %
l
d
\n
"
,
s
,
addr
,
addrlen
,
lpfnCondition
,
dwCallbackData
);
...
...
dlls/ws2_32/tests/sock.c
View file @
e9e0df23
...
...
@@ -2467,7 +2467,7 @@ static void test_accept(void)
ret
=
connect
(
connector
,
(
struct
sockaddr
*
)
&
address
,
sizeof
(
address
));
ok
(
ret
==
0
,
"connecting to accepting socket failed, error %d
\n
"
,
WSAGetLastError
());
accepted
=
WSAAccept
(
server_socket
,
NULL
,
NULL
,
(
LPCONDITIONPROC
)
AlwaysDeferConditionFunc
,
0
);
accepted
=
WSAAccept
(
server_socket
,
NULL
,
NULL
,
AlwaysDeferConditionFunc
,
0
);
ok
(
accepted
==
INVALID_SOCKET
&&
WSAGetLastError
()
==
WSATRY_AGAIN
,
"Failed to defer connection, %d
\n
"
,
WSAGetLastError
());
accepted
=
accept
(
server_socket
,
NULL
,
0
);
...
...
include/winsock2.h
View file @
e9e0df23
...
...
@@ -401,7 +401,7 @@ typedef int (CALLBACK *LPCONDITIONPROC)
LPWSABUF
lpCalleeId
,
LPWSABUF
lpCalleeData
,
GROUP
*
g
,
DWORD
dwCallbackData
DWORD
_PTR
dwCallbackData
);
typedef
void
(
CALLBACK
*
LPWSAOVERLAPPED_COMPLETION_ROUTINE
)
...
...
@@ -604,7 +604,7 @@ typedef SOCKET (WINAPI *LPFN_SOCKET)(int,int,int);
* "Winsock2 Function Typedefs" section below.
*/
#if WS_API_PROTOTYPES
SOCKET
WINAPI
WSAAccept
(
SOCKET
,
struct
WS
(
sockaddr
)
*
,
LPINT
,
LPCONDITIONPROC
,
DWORD
);
SOCKET
WINAPI
WSAAccept
(
SOCKET
,
struct
WS
(
sockaddr
)
*
,
LPINT
,
LPCONDITIONPROC
,
DWORD
_PTR
);
INT
WINAPI
WSAAddressToStringA
(
LPSOCKADDR
,
DWORD
,
LPWSAPROTOCOL_INFOA
,
LPSTR
,
LPDWORD
);
INT
WINAPI
WSAAddressToStringW
(
LPSOCKADDR
,
DWORD
,
LPWSAPROTOCOL_INFOW
,
LPWSTR
,
LPDWORD
);
#define WSAAddressToString WINELIB_NAME_AW(WSAAddressToString)
...
...
@@ -678,7 +678,7 @@ DWORD WINAPI WSAWaitForMultipleEvents(DWORD,const WSAEVENT*,BOOL,DWORD,BOOL);
* "Winsock2 Prototypes" section above.
*/
#if WS_API_TYPEDEFS
typedef
SOCKET
(
WINAPI
*
LPFN_WSAACCEPT
)(
SOCKET
,
WS
(
sockaddr
)
*
,
LPINT
,
LPCONDITIONPROC
,
DWORD
);
typedef
SOCKET
(
WINAPI
*
LPFN_WSAACCEPT
)(
SOCKET
,
WS
(
sockaddr
)
*
,
LPINT
,
LPCONDITIONPROC
,
DWORD
_PTR
);
typedef
INT
(
WINAPI
*
LPFN_WSAADRESSTOSTRINGA
)(
LPSOCKADDR
,
DWORD
,
LPWSAPROTOCOL_INFOA
,
LPSTR
,
LPDWORD
);
typedef
INT
(
WINAPI
*
LPFN_WSAADRESSTOSTRINGW
)(
LPSOCKADDR
,
DWORD
,
LPWSAPROTOCOL_INFOW
,
LPWSTR
,
LPDWORD
);
#define LPFN_WSAADDRESSTOSTRING WINELIB_NAME_AW(LPFN_WSAADDRESSTOSTRING)
...
...
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