]> git.sesse.net Git - vlc/commitdiff
Skins2: check if file exists, not folder
authorJean-Philippe André <jpeg@videolan.org>
Tue, 1 Jun 2010 16:07:23 +0000 (00:07 +0800)
committerJean-Philippe André <jpeg@videolan.org>
Wed, 2 Jun 2010 14:16:38 +0000 (22:16 +0800)
Note: it looks like vlc_stat("C:") returns an error (Windows)

modules/gui/skins2/src/theme_loader.cpp

index 0d9cfd5b9ee7fede21f097417049b9b057588139..d9ae6a44a11dd44d6b04893c57698df9ee3ffcb4 100644 (file)
@@ -77,7 +77,7 @@ bool ThemeLoader::load( const string &fileName )
 
     //Before all, let's see if the file is present
     struct stat p_stat;
-    if( vlc_stat( path.c_str(), &p_stat ) )
+    if( vlc_stat( fileName.c_str(), &p_stat ) )
         return false;
 
     // First, we try to un-targz the file, and if it fails we hope it's a XML