We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcdd786 commit 268b6e7Copy full SHA for 268b6e7
include/YY/Base/IO/File.h
@@ -50,7 +50,16 @@ namespace YY
50
51
HRESULT __YYAPI RunTask() override
52
{
53
- pfnResultCallback(lStatus, uint32_t(InternalHigh));
+ try
54
+ {
55
+ pfnResultCallback(lStatus, uint32_t(InternalHigh));
56
+ }
57
+ catch (const YY::OperationCanceledException&)
58
59
+ return YY::HRESULT_From_LSTATUS(ERROR_CANCELLED);
60
61
+
62
+ return S_OK;
63
}
64
};
65
@@ -485,7 +494,16 @@ namespace YY
485
494
486
495
487
496
488
- pfnResultCallback(lStatus);
497
498
499
+ pfnResultCallback(lStatus);
500
501
502
503
504
505
506
489
507
490
508
491
509
0 commit comments