From 20cb84189ee4adc7fe5cd62b5cb78ccc02157161 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Sat, 19 Jan 2019 12:04:55 +0100 Subject: [PATCH] Fix problems with UWP filesystem in Release builds --- libretro-common/vfs/vfs_implementation_uwp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libretro-common/vfs/vfs_implementation_uwp.cpp b/libretro-common/vfs/vfs_implementation_uwp.cpp index 4a8b174c24..b65b83f2a9 100644 --- a/libretro-common/vfs/vfs_implementation_uwp.cpp +++ b/libretro-common/vfs/vfs_implementation_uwp.cpp @@ -65,9 +65,9 @@ namespace template T RunAsync(std::function()> func) { - bool finished = false; - Platform::Exception^ exception = nullptr; - T result; + volatile bool finished = false; + volatile Platform::Exception^ exception = nullptr; + volatile T result; func().then([&](concurrency::task t) { try {