Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c5942976
Commit
c5942976
authored
Jul 06, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix off-by-one error
parent
df7648f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/winvlc.c
src/winvlc.c
+4
-4
No files found.
src/winvlc.c
View file @
c5942976
...
...
@@ -91,9 +91,9 @@ static int parse_cmdline (char *line, char ***argvp)
* wWinMain: parse command line, start interface and spawn threads.
*****************************************************************************/
int
WINAPI
wWinMain
(
HINSTANCE
hInstance
,
HINSTANCE
hPrevInstance
,
LPWSTR
lpCmdLine
,
int
nCmdShow
)
LPWSTR
lpCmdLine
,
int
nCmdShow
)
{
char
**
argv
,
psz_cmdline
[
wcslen
(
lpCmdLine
)
*
4
];
char
**
argv
,
psz_cmdline
[
wcslen
(
lpCmdLine
)
*
4
+
1
];
int
argc
,
ret
;
(
void
)
hInstance
;
(
void
)
hPrevInstance
;
(
void
)
nCmdShow
;
...
...
@@ -129,8 +129,8 @@ 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
)
);
wchar_t
lpCmdLine
[
(
strlen
(
args
)
+
1
)
*
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