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
1 changed files with 3 additions and 3 deletions

View File

@ -65,9 +65,9 @@ namespace
template<typename T> template<typename T>
T RunAsync(std::function<concurrency::task<T>()> func) T RunAsync(std::function<concurrency::task<T>()> func)
{ {
bool finished = false; volatile bool finished = false;
Platform::Exception^ exception = nullptr; volatile Platform::Exception^ exception = nullptr;
T result; volatile T result;
func().then([&](concurrency::task<T> t) { func().then([&](concurrency::task<T> t) {
try try
{ {