Fix problems with UWP filesystem in Release builds

This commit is contained in:
krzys-h 2019-01-19 12:04:55 +01:00
parent 4461d32900
commit 20cb84189e

View File

@ -65,9 +65,9 @@ namespace
template<typename T>
T RunAsync(std::function<concurrency::task<T>()> 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> t) {
try
{