#include "config.h"
#include <vlc/vlc.h>
-#include <stdio.h> /* fprintf() */
-#include <stdlib.h> /* putenv(), strtol(), */
+#include <stdio.h>
+#include <stdlib.h>
#include <locale.h>
+
/* Explicit HACK */
extern void LocaleFree (const char *);
extern char *FromLocale (const char *);
}
#if !defined(WIN32) && !defined(UNDER_CE)
- /* Synchronously intercepted signals. Thy request a clean shutdown,
+ /* Synchronously intercepted signals. They request a clean shutdown,
* and force an unclean shutdown if they are triggered again 2+ seconds
* later. We have to handle SIGTERM cleanly because of daemon mode.
* Note that we set the signals after the vlc_create call. */
int si = { 0 };
__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);
if( len > 0 )