]> git.sesse.net Git - vlc/commitdiff
Revert [14452] as it broke the mozilla plugin. We need to find another way
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 25 Feb 2006 21:11:18 +0000 (21:11 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 25 Feb 2006 21:11:18 +0000 (21:11 +0000)
to fix that.

src/misc/win32_specific.c

index c58567d55287364f6c08d6a6d021d49170117ea5..b5d1cb9254b481297a784b16a2e16b5693f9d4d8 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';
     }