Try to add the workaround for unhandled exception at twinapi.appcore.dll for fixing https://github.com/M2Team/NanaZip/issues/400.

This commit is contained in:
MouriNaruto
2024-04-22 21:19:20 +08:00
parent 2b5fb9872f
commit 6ee2a496bc

View File

@@ -8,6 +8,9 @@ namespace winrt::NanaZip::Modern::implementation
{
App::App()
{
// Workaround for unhandled exception at twinapi.appcore.dll
// Fixes: https://github.com/M2Team/NanaZip/issues/400
this->AddRef();
::MileXamlGlobalInitialize();
}