[vlc-devel] [PATCH] win32: fs: Don't use getcwd on winrt
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Fri Apr 8 15:43:55 CEST 2016
On 04/08/2016 02:04 PM, Shlomi Fish wrote:
> 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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
Hi,
It is not provided by the runtime, and in theory, it shouldn't even be
declared.
https://msdn.microsoft.com/library/windows/apps/jj606124.aspx
Regards,
More information about the vlc-devel
mailing list