Fix problems with UWP filesystem in Release builds
This commit is contained in:
parent
4461d32900
commit
20cb84189e
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue