[vlc-devel] [PATCH] Win32: Don't use vlc_stat against a file path starting with '/'
Jean-Baptiste Kempf
jb at videolan.org
Wed Dec 5 09:56:25 CET 2012
Close #7292
---
src/win32/filesystem.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/win32/filesystem.c b/src/win32/filesystem.c
index d071afd..2c599f4 100644
--- a/src/win32/filesystem.c
+++ b/src/win32/filesystem.c
@@ -209,6 +209,8 @@ char *vlc_readdir (DIR *dir)
int vlc_stat (const char *filename, struct stat *buf)
{
+ if( filename[0] == '/' )
+ filename++;
wchar_t *wpath = widen_path (filename);
if (wpath == NULL)
return -1;
--
1.8.0.1
More information about the vlc-devel
mailing list