[vlc-devel] [PATCH] win32: fs: Don't use getcwd on winrt
Shlomi Fish
shlomif at shlomifish.org
Fri Apr 8 14:04:53 CEST 2016
Hi Hugo,
can you explain in a comment why this change is needed? What's wrong with using
_wgetcwd() on WinRT?
Regards,
Shlomi Fish
On Fri, 8 Apr 2016 13:07:06 +0200
Hugo Beauzée-Luyssen <hugo at beauzee.fr> wrote:
> ---
> 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-devel
mailing list