From dcb61674013200a1c700e24d45cf25b42d048e0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 26 Aug 2008 17:55:18 +0300 Subject: [PATCH] Win32: do not pass argv[0] to libvlc - fixes #1920 --- bin/winvlc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2