Commit 011b5e57 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

share: Don't use CreateFileA when building for WinRT/UWP

As this function is forbidden there
parent 22b0d9a1
......@@ -154,7 +154,11 @@ int get_utf8_argv(int *argc, char ***argv)
HANDLE WINAPI CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
{
if (!flac_internal_get_utf8_filenames()) {
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
return CreateFileA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile);
#else
return INVALID_HANDLE_VALUE;
#endif
} else {
wchar_t *wname;
HANDLE handle = INVALID_HANDLE_VALUE;
......
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