Navigation Menu

Skip to content

Commit

Permalink
WinRT: patched to compile
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Aug 29, 2016
1 parent 5bcf1d2 commit b65763c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/windows/SDL_windows.c
Expand Up @@ -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];
Expand Down Expand Up @@ -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__ */
Expand Down

0 comments on commit b65763c

Please sign in to comment.