]> git.sesse.net Git - vlc/commitdiff
Win32 one instance: fix segfault
authorRafaël Carré <funman@videolan.org>
Sat, 26 Jan 2013 13:40:07 +0000 (14:40 +0100)
committerRafaël Carré <funman@videolan.org>
Sat, 26 Jan 2013 13:40:07 +0000 (14:40 +0100)
src/win32/specific.c

index 18e4db8250a62377e7cd16f312ef86aee662e84d..928e7be40fca6c397d6c702b91cc88a3506159be 100644 (file)
@@ -294,7 +294,7 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
                 /* FIXME: This breaks relative paths if calling vlc.exe is
                  * started from a different working directory. */
                 char *psz_URI = NULL;
-                if( strstr( psz_URI, "://" ) == NULL )
+                if( strstr( ppsz_argv[i_opt], "://" ) == NULL )
                     psz_URI = vlc_path2uri( ppsz_argv[i_opt], NULL );
                 playlist_AddExt( p_playlist,
                         (psz_URI != NULL) ? psz_URI : ppsz_argv[i_opt],