Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
82580b6f
Commit
82580b6f
authored
Sep 07, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winsock recvmsg: fix WSARecvFrom usage
Pointed-out-by: Laurent Aimar
parent
20ad5a20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/network/winsock.c
src/network/winsock.c
+7
-3
No files found.
src/network/winsock.c
View file @
82580b6f
...
@@ -185,12 +185,16 @@ ssize_t vlc_recvmsg (int s, struct msghdr *hdr, int flags)
...
@@ -185,12 +185,16 @@ ssize_t vlc_recvmsg (int s, struct msghdr *hdr, int flags)
buf
[
i
].
buf
=
hdr
->
msg_iov
[
i
].
iov_base
,
buf
[
i
].
buf
=
hdr
->
msg_iov
[
i
].
iov_base
,
buf
[
i
].
len
=
hdr
->
msg_iov
[
i
].
iov_len
;
buf
[
i
].
len
=
hdr
->
msg_iov
[
i
].
iov_len
;
DWORD
recvd
;
DWORD
recvd
,
dwFlags
=
flags
;
INT
fromlen
=
hdr
->
msg_namelen
;
hdr
->
msg_controllen
=
0
;
hdr
->
msg_controllen
=
0
;
hdr
->
msg_flags
=
0
;
hdr
->
msg_flags
=
0
;
if
(
WSARecvFrom
(
s
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
&
recvd
,
flags
,
int
ret
=
WSARecvFrom
(
s
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]),
&
recvd
,
hdr
->
msg_name
,
hdr
->
msg_namelen
,
NULL
,
NULL
)
==
0
)
&
dwFlags
,
hdr
->
msg_name
,
&
fromlen
,
NULL
,
NULL
);
hdr
->
msg_namelen
=
fromlen
;
hdr
->
msg_flags
=
dwFlags
;
if
(
ret
==
0
)
return
recvd
;
return
recvd
;
#ifdef MSG_TRUNC
#ifdef MSG_TRUNC
...
...
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