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
cbcdf0dc
Commit
cbcdf0dc
authored
May 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup previous commit
parent
73a3e8a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
src/winvlc.c
src/winvlc.c
+11
-9
No files found.
src/winvlc.c
View file @
cbcdf0dc
...
@@ -173,21 +173,12 @@ static char **vlc_parse_cmdline( const char *psz_cmdline, int *i_args )
...
@@ -173,21 +173,12 @@ static char **vlc_parse_cmdline( const char *psz_cmdline, int *i_args )
# define wWinMain WinMain
# define wWinMain WinMain
#endif
#endif
#ifdef IF_MINGW_SUPPORTED_UNICODE
/*****************************************************************************
/*****************************************************************************
* wWinMain: parse command line, start interface and spawn threads.
* wWinMain: parse command line, start interface and spawn threads.
*****************************************************************************/
*****************************************************************************/
int
WINAPI
wWinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
,
int
WINAPI
wWinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
,
LPWSTR
lpCmdLine
,
int
nCmdShow
)
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
];
char
**
argv
,
psz_cmdline
[
wcslen
(
lpCmdLine
)
*
4
];
int
argc
,
ret
;
int
argc
,
ret
;
...
@@ -214,3 +205,14 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
...
@@ -214,3 +205,14 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
libvlc_exception_clear
(
&
ex
);
libvlc_exception_clear
(
&
ex
);
return
ret
;
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
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