[vlc-devel] commit: Win32: do not pass argv[0] to libvlc - fixes #1920 ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Aug 26 16:52:57 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Aug 26 17:55:18 2008 +0300| [dcb61674013200a1c700e24d45cf25b42d048e0a] | committer: Rémi Denis-Courmont 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dcb61674013200a1c700e24d45cf25b42d048e0a
---

 bin/winvlc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/bin/winvlc.c b/bin/winvlc.c
index 7e028ac..43c2e46 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);




More information about the vlc-devel mailing list