Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
831562a5
Commit
831562a5
authored
Oct 23, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/misc/net.c: WinCE fix.
parent
db2eed2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/misc/net.c
src/misc/net.c
+8
-1
No files found.
src/misc/net.c
View file @
831562a5
...
...
@@ -1210,8 +1210,15 @@ int inet_pton(int af, const char *src, void *dst)
int
len
=
sizeof
(
addr
);
/* Damn it, they didn't even put LPCSTR for the firs parameter!!! */
#ifdef UNICODE
wchar_t
*
workaround_for_ill_designed_api
=
malloc
(
MAX_PATH
*
sizeof
(
wchar_t
)
);
mbstowcs
(
workaround_for_ill_designed_api
,
src
,
MAX_PATH
);
workaround_for_ill_designed_api
[
MAX_PATH
-
1
]
=
0
;
#else
char
*
workaround_for_ill_designed_api
=
strdup
(
src
);
#endif
if
(
!
WSAStringToAddress
(
workaround_for_ill_designed_api
,
af
,
NULL
,
(
LPSOCKADDR
)
&
addr
,
&
len
)
)
{
...
...
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