[vlc-commits] commit: Skins2: check if file exists, not folder ( Jean-Philippe André )
git at videolan.org
git at videolan.org
Wed Jun 2 16:20:03 CEST 2010
vlc | branch: master | Jean-Philippe André <jpeg at videolan.org> | Wed Jun 2 00:07:23 2010 +0800| [035a3f5e7ad1c288d810eba4bef0f74c152fd41c] | committer: Jean-Philippe André
Skins2: check if file exists, not folder
Note: it looks like vlc_stat("C:") returns an error (Windows)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=035a3f5e7ad1c288d810eba4bef0f74c152fd41c
---
modules/gui/skins2/src/theme_loader.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/gui/skins2/src/theme_loader.cpp b/modules/gui/skins2/src/theme_loader.cpp
index 0d9cfd5..d9ae6a4 100644
--- a/modules/gui/skins2/src/theme_loader.cpp
+++ b/modules/gui/skins2/src/theme_loader.cpp
@@ -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
More information about the vlc-commits
mailing list