Commit dcb61674 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: do not pass argv[0] to libvlc - fixes #1920

parent fe52817e
......@@ -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);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment