From b65763c0c25dc0cbd0cafb2b185d98c2b3de1ce4 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Mon, 29 Aug 2016 10:48:56 -0400 Subject: [PATCH] WinRT: patched to compile --- src/core/windows/SDL_windows.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/windows/SDL_windows.c b/src/core/windows/SDL_windows.c index a1d366b24..34c9a93a0 100644 --- a/src/core/windows/SDL_windows.c +++ b/src/core/windows/SDL_windows.c @@ -146,6 +146,9 @@ has the same problem.) char * WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid) { +#if __WINRT__ + return WIN_StringToUTF8(name); /* No registry access on WinRT/UWP, go with what we've got. */ +#else static const GUID nullguid = { 0 }; const unsigned char *ptr; char keystr[128]; @@ -196,6 +199,7 @@ WIN_LookupAudioDeviceName(const WCHAR *name, const GUID *guid) retval = WIN_StringToUTF8(strw); SDL_free(strw); return retval ? retval : WIN_StringToUTF8(name); +#endif /* if __WINRT__ / else */ } #endif /* __WIN32__ || __WINRT__ */