[vlc-commits] win32: fs: Don't use getcwd on winrt
Hugo Beauzée-Luyssen
git at videolan.org
Mon Apr 11 10:12:39 CEST 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Apr 8 13:04:55 2016 +0200| [5cb5072cd9b5ba8e68f33d535520a409f4de08d8] | committer: Hugo Beauzée-Luyssen
win32: fs: Don't use getcwd on winrt
getcwd functions are not allowed by WinRT
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5cb5072cd9b5ba8e68f33d535520a409f4de08d8
---
src/win32/filesystem.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/win32/filesystem.c b/src/win32/filesystem.c
index 9036dbe..f05aa5d5 100644
--- a/src/win32/filesystem.c
+++ b/src/win32/filesystem.c
@@ -138,6 +138,9 @@ int vlc_mkdir( const char *dirname, mode_t mode )
char *vlc_getcwd (void)
{
+#if VLC_WINSTORE_APP
+ return NULL;
+#else
wchar_t *wdir = _wgetcwd (NULL, 0);
if (wdir == NULL)
return NULL;
@@ -145,6 +148,7 @@ char *vlc_getcwd (void)
char *dir = FromWide (wdir);
free (wdir);
return dir;
+#endif
}
/* Under Windows, these wrappers return the list of drive letters
More information about the vlc-commits
mailing list