From ebce936557fe3e89aae957900cfb453e50f752a7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 4 Feb 2019 23:13:56 +0100 Subject: [PATCH] Fix UWP builds --- audio/audio_driver.c | 2 +- retroarch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/audio_driver.c b/audio/audio_driver.c index 6633d8147b..b3303b0e50 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -1428,7 +1428,7 @@ void audio_driver_load_menu_sounds(void) const char *path_bgm = NULL; struct string_list *list = NULL; struct string_list *list_fallback = NULL; - int i = 0; + unsigned i = 0; sounds_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char)); sounds_fallback_path = (char*)malloc(PATH_MAX_LENGTH * sizeof(char)); diff --git a/retroarch.c b/retroarch.c index 0406c3ecf6..6cbf7fc77f 100644 --- a/retroarch.c +++ b/retroarch.c @@ -3780,7 +3780,7 @@ void rarch_force_video_driver_fallback(const char *driver) command_event(CMD_EVENT_MENU_SAVE_CURRENT_CONFIG, NULL); -#ifdef _WIN32 +#if defined(_WIN32) && !defined(_XBOX) && !defined(__WINRT__) && !defined(WINAPI_FAMILY) /* UI companion driver is not inited yet, just call into it directly */ msg_window = &ui_msg_window_win32; #endif