]> git.sesse.net Git - vlc/commitdiff
* src/misc/win32_specific.c: mozilla plugin fix.
authorGildas Bazin <gbazin@videolan.org>
Tue, 2 Nov 2004 12:52:49 +0000 (12:52 +0000)
committerGildas Bazin <gbazin@videolan.org>
Tue, 2 Nov 2004 12:52:49 +0000 (12:52 +0000)
src/misc/win32_specific.c

index 98a3de4118e4566160d3b82fedeab3bb9fe9717f..ff8dc23d49d326b668b351d342c23bcee22bd876 100644 (file)
@@ -60,7 +60,11 @@ void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
     else psz_path[0] = '\0';
 
 #else
-    if( !GetModuleFileName( NULL, psz_path, MAX_PATH ) )
+    if( ppsz_argv[0] )
+    {
+        GetFullPathName( ppsz_argv[0], MAX_PATH, psz_path, &psz_vlc );
+    }
+    else if( !GetModuleFileName( NULL, psz_path, MAX_PATH ) )
     {
         psz_path[0] = '\0';
     }