[vlc-commits] Win32 one instance: fix segfault

Rafaël Carré git at videolan.org
Sat Jan 26 14:41:26 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Jan 26 14:40:07 2013 +0100| [9a0a47a5a28a0eaea1904d133b409494ba85037d] | committer: Rafaël Carré

Win32 one instance: fix segfault

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a0a47a5a28a0eaea1904d133b409494ba85037d
---

 src/win32/specific.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/win32/specific.c b/src/win32/specific.c
index 18e4db8..928e7be 100644
--- a/src/win32/specific.c
+++ b/src/win32/specific.c
@@ -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],



More information about the vlc-commits mailing list