Commit 5cb5072c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

win32: fs: Don't use getcwd on winrt

getcwd functions are not allowed by WinRT
parent ad82fe3f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment