Fix UWP build in non-UNICODE mode

This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2024-07-19 10:21:34 +00:00
1 parent c59771d7fc
commit ccebbb6c6e
8 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -145,7 +145,7 @@ void SDL_WasapiDeviceEventHandler::OnDeviceAdded(DeviceWatcher ^ sender, DeviceI
available and switch automatically. (!!! FIXME...?) */
SDL_assert(sender == this->watcher);
char *utf8dev = WIN_StringToUTF8(info->Name->Data());
char *utf8dev = WIN_StringToUTF8W(info->Name->Data());
if (utf8dev) {
SDL_AudioSpec spec;
SDL_zero(spec);