Commit f9a64c9f authored by Antoine Cellerier's avatar Antoine Cellerier

Fix running vlc from path in windows (see...

Fix running vlc from path in windows (see http://forum.videolan.org/viewtopic.php?t=17435 ). This could break the mozilla plugin on windows (see http://trac.videolan.org/vlc/changeset/9106) so i'm commiting and i'll do a nightly to check. One way to be sure would be to ask Gibalou but ....

parent 5ce85491
......@@ -60,11 +60,7 @@ void system_Init( vlc_t *p_this, int *pi_argc, char *ppsz_argv[] )
else psz_path[0] = '\0';
#else
if( ppsz_argv[0] )
{
GetFullPathName( ppsz_argv[0], MAX_PATH, psz_path, &psz_vlc );
}
else if( !GetModuleFileName( NULL, psz_path, MAX_PATH ) )
if( !GetModuleFileName( NULL, psz_path, MAX_PATH ) )
{
psz_path[0] = '\0';
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment