From: Gildas Bazin Date: Tue, 2 Nov 2004 12:52:49 +0000 (+0000) Subject: * src/misc/win32_specific.c: mozilla plugin fix. X-Git-Tag: 0.8.0~8 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=be8b473e57ae74b7d935111d5ece485421b452eb;p=vlc * src/misc/win32_specific.c: mozilla plugin fix. --- diff --git a/src/misc/win32_specific.c b/src/misc/win32_specific.c index 98a3de4118..ff8dc23d49 100644 --- a/src/misc/win32_specific.c +++ b/src/misc/win32_specific.c @@ -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'; }