Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
1c3bc897
Commit
1c3bc897
authored
Feb 12, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- src/vlc.c: compile fix for win32
parent
057e689f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
src/vlc.c
src/vlc.c
+29
-1
No files found.
src/vlc.c
View file @
1c3bc897
...
...
@@ -39,6 +39,7 @@
#include <vlc/vlc.h>
#ifdef WIN32
#include <windows.h>
extern
void
__wgetmainargs
(
int
*
argc
,
wchar_t
***
wargv
,
wchar_t
***
wenviron
,
int
expand_wildcards
,
int
*
startupinfo
);
#endif
...
...
@@ -113,7 +114,34 @@ int main( int i_argc, char *ppsz_argv[] )
__wgetmainargs
(
&
i_wargc
,
&
wargv
,
&
wenvp
,
0
,
&
si
);
for
(
i
=
1
;
i
<
i_wargc
;
i
++
)
ppsz_argv
[
i
]
=
FromWide
(
wargv
[
i
]
);
{
int
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
wargv
[
i
],
-
1
,
NULL
,
0
,
NULL
,
NULL
);
if
(
len
>
0
)
{
if
(
len
>
1
)
{
char
*
utf8arg
=
(
char
*
)
malloc
(
len
);
if
(
NULL
!=
utf8arg
)
{
WideCharToMultiByte
(
CP_UTF8
,
0
,
wargv
[
i
],
-
1
,
utf8arg
,
len
,
NULL
,
NULL
);
ppsz_argv
[
i
]
=
utf8arg
;
}
else
{
/* failed!, quit */
return
-
1
;
}
}
else
{
ppsz_argv
[
i
]
=
""
;
}
}
else
{
/* failed!, quit */
return
-
1
;
}
}
}
#endif
...
...
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