Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
357771f9
Commit
357771f9
authored
Sep 18, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print Winsock error instead of errno if applicable
parent
9ecfcfc9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/misc/messages.c
src/misc/messages.c
+11
-0
No files found.
src/misc/messages.c
View file @
357771f9
...
...
@@ -318,7 +318,18 @@ static void QueueMsg( vlc_object_t *p_this, int i_queue, int i_type,
char
errbuf
[
2001
];
size_t
errlen
;
#ifndef WIN32
strerror_r
(
errno
,
errbuf
,
1001
);
#else
int
sockerr
=
WSAGetLastError
(
);
if
(
sockerr
)
{
strncpy
(
errbuf
,
net_strerror
(
sockerr
),
1001
);
WSASetLastError
(
sockerr
);
}
else
strncpy
(
errbuf
,
strerror
(
errno
),
1001
);
#endif
errbuf
[
1000
]
=
0
;
/* Escape '%' from the error string */
...
...
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