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
f8850243
Commit
f8850243
authored
Jan 29, 2002
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename s_addr to src_addr to avoid a conflict on Solaris.
Rename d_addr to dst_addr for symmetry.
parent
7229e921
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
socket.c
dlls/winsock/socket.c
+9
-9
No files found.
dlls/winsock/socket.c
View file @
f8850243
...
...
@@ -3485,27 +3485,27 @@ SOCKET WINAPI WSAAccept( SOCKET s, struct WS_sockaddr *addr, LPINT addrlen,
/* QOS SQOS, GQOS; */
GROUP
g
;
SOCKET
cs
;
SOCKADDR
s
_addr
,
d
_addr
;
SOCKADDR
s
rc_addr
,
dst
_addr
;
TRACE
(
"Socket %ui, sockaddr %p, addrlen %p, fnCondition %p, dwCallbackD ata %ld
\n
"
,
s
,
addr
,
addrlen
,
lpfnCondition
,
dwCallbackData
);
size
=
sizeof
(
s_addr
);
cs
=
WS_accept
(
s
,
&
s_addr
,
&
size
);
size
=
sizeof
(
s
rc
_addr
);
cs
=
WS_accept
(
s
,
&
s
rc
_addr
,
&
size
);
if
(
cs
==
SOCKET_ERROR
)
return
SOCKET_ERROR
;
CallerId
.
buf
=
(
char
*
)
&
s_addr
;
CallerId
.
len
=
sizeof
(
s_addr
);
CallerId
.
buf
=
(
char
*
)
&
s
rc
_addr
;
CallerId
.
len
=
sizeof
(
s
rc
_addr
);
CallerData
.
buf
=
NULL
;
CallerData
.
len
=
(
ULONG
)
NULL
;
WS_getsockname
(
cs
,
&
d_addr
,
&
size
);
WS_getsockname
(
cs
,
&
d
st
_addr
,
&
size
);
CalleeId
.
buf
=
(
char
*
)
&
d_addr
;
CalleeId
.
len
=
sizeof
(
d_addr
);
CalleeId
.
buf
=
(
char
*
)
&
d
st
_addr
;
CalleeId
.
len
=
sizeof
(
d
st
_addr
);
ret
=
(
*
lpfnCondition
)(
&
CallerId
,
&
CallerData
,
NULL
,
NULL
,
...
...
@@ -3515,7 +3515,7 @@ SOCKET WINAPI WSAAccept( SOCKET s, struct WS_sockaddr *addr, LPINT addrlen,
{
case
CF_ACCEPT
:
if
(
addr
&&
addrlen
)
addr
=
memcpy
(
addr
,
&
s_addr
,
(
*
addrlen
>
size
)
?
size
:
*
addrlen
);
addr
=
memcpy
(
addr
,
&
s
rc
_addr
,
(
*
addrlen
>
size
)
?
size
:
*
addrlen
);
return
cs
;
case
CF_DEFER
:
SetLastError
(
WSATRY_AGAIN
);
...
...
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