Skip to content

Commit d1e1435

Browse files
ssparachScottj1s
andcommitted
Update dev/WindowsAppRuntime_DLL/dllmain.cpp
Co-authored-by: Scott Jones <sjones@microsoft.com>
1 parent 6baa179 commit d1e1435

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev/WindowsAppRuntime_DLL/dllmain.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,12 @@ static HRESULT DetoursShutdown()
6262
// Stop Detour'ing APIs to our implementation
6363
FAIL_FAST_IF_WIN32_ERROR(DetourTransactionBegin());
6464
FAIL_FAST_IF_WIN32_ERROR(DetourUpdateThread(GetCurrentThread()));
65-
if (!isPackaged && !is19H1OrGreater)
65+
if (!is19H1OrGreater)
6666
{
6767
UrfwShutdown();
68+
}
69+
if (!isPackaged)
70+
{
6871
MddDetourPackageGraphShutdown();
6972
}
7073
FAIL_FAST_IF_WIN32_ERROR(DetourTransactionCommit());

0 commit comments

Comments
 (0)