Fix problems with UWP filesystem in Release builds
This commit is contained in:
parent
4461d32900
commit
20cb84189e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue