Commit 4149b947 authored by Damien Fouilleul's avatar Damien Fouilleul

vlc.c: small fix in use of __wgetmainargs

parent 4cd4bb9d
...@@ -131,7 +131,7 @@ int main( int i_argc, char *ppsz_argv[] ) ...@@ -131,7 +131,7 @@ int main( int i_argc, char *ppsz_argv[] )
int si = { 0 }; int si = { 0 };
__wgetmainargs(&i_wargc, &wargv, &wenvp, 0, &si); __wgetmainargs(&i_wargc, &wargv, &wenvp, 0, &si);
for( i = 1; i < i_wargc; i++ ) for( i = 0; i < i_wargc; i++ )
{ {
int len = WideCharToMultiByte(CP_UTF8, 0, wargv[i], -1, NULL, 0, NULL, NULL); int len = WideCharToMultiByte(CP_UTF8, 0, wargv[i], -1, NULL, 0, NULL, NULL);
if( len > 0 ) if( len > 0 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment