Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
cbcdf0dc
Commit
cbcdf0dc
authored
16 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup previous commit
parent
73a3e8a9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winvlc.c
+11
-9
11 additions, 9 deletions
src/winvlc.c
with
11 additions
and
9 deletions
src/winvlc.c
+
11
−
9
View file @
cbcdf0dc
...
...
@@ -173,21 +173,12 @@ static char **vlc_parse_cmdline( const char *psz_cmdline, int *i_args )
# define wWinMain WinMain
#endif
#ifdef IF_MINGW_SUPPORTED_UNICODE
/*****************************************************************************
* wWinMain: parse command line, start interface and spawn threads.
*****************************************************************************/
int
WINAPI
wWinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
,
LPWSTR
lpCmdLine
,
int
nCmdShow
)
{
#else
int
WINAPI
WinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
,
LPSTR
args
,
int
nCmdShow
)
{
/* This makes little sense, but at least it links properly */
wchar_t
lpCmdLine
[
strlen
(
args
)
*
3
];
MultiByteToWideChar
(
CP_ACP
,
0
,
args
,
-
1
,
lpCmdLine
,
sizeof
(
lpCmdLine
)
);
#endif
char
**
argv
,
psz_cmdline
[
wcslen
(
lpCmdLine
)
*
4
];
int
argc
,
ret
;
...
...
@@ -214,3 +205,14 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
libvlc_exception_clear
(
&
ex
);
return
ret
;
}
#ifndef IF_MINGW_SUPPORTED_UNICODE
int
WINAPI
WinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
,
LPSTR
args
,
int
nCmdShow
)
{
/* This makes little sense, but at least it links properly */
wchar_t
lpCmdLine
[
strlen
(
args
)
*
3
];
MultiByteToWideChar
(
CP_ACP
,
0
,
args
,
-
1
,
lpCmdLine
,
sizeof
(
lpCmdLine
)
);
return
wWinMain
(
hInstance
,
hPrevInstance
,
lpCmdLine
,
nCmdShow
);
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment