]> git.sesse.net Git - vlc/commitdiff
WIN32: compile fix in playlist.
authorJP Dinger <jpd@videolan.org>
Wed, 27 May 2009 08:16:42 +0000 (10:16 +0200)
committerJP Dinger <jpd@videolan.org>
Wed, 27 May 2009 08:43:17 +0000 (10:43 +0200)
modules/demux/playlist/playlist.c

index ca238ababa9b695c4743928d72c94b03e097fbcb..410c13e59114e4157cd5817f0371f22187f05fd5 100644 (file)
@@ -176,12 +176,12 @@ char *FindPrefix( demux_t *p_demux )
     char *psz_prefix;
     const char *psz_path = p_demux->psz_path;
 
-#ifndef WIN32
-    psz_file = strrchr( psz_path, '/' );
-#else
+#ifdef WIN32
     psz_file = strrchr( psz_path, '\\' );
-    if( !psz_file ) psz_name = strrchr( psz_path, '/' );
+    if( !psz_file )
 #endif
+    psz_file = strrchr( psz_path, '/' );
+
     if( psz_file )
         psz_prefix = strndup( psz_path, psz_file - psz_path + 1 );
     else