From: RĂ©mi Denis-Courmont Date: Tue, 26 Aug 2008 14:55:18 +0000 (+0300) Subject: Win32: do not pass argv[0] to libvlc - fixes #1920 X-Git-Tag: 1.0.0-pre1~3839 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=dcb61674013200a1c700e24d45cf25b42d048e0a;p=vlc Win32: do not pass argv[0] to libvlc - fixes #1920 --- diff --git a/bin/winvlc.c b/bin/winvlc.c index 7e028ac630..43c2e46130 100644 --- a/bin/winvlc.c +++ b/bin/winvlc.c @@ -71,7 +71,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, libvlc_exception_init (&dummy); /* Initialize libvlc */ - libvlc_instance_t *vlc = libvlc_new (argc, (const char **)argv, &ex); + libvlc_instance_t *vlc; + vlc = libvlc_new (argc - 1, (const char **)argv + 1, &ex); if (vlc != NULL) { libvlc_add_intf (vlc, NULL, &ex);