diff --git a/src/Main.cpp b/src/Main.cpp index b0ab0cc2..998ce035 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -14,7 +14,7 @@ namespace Main { DWORD result = (Components::Loader::PerformUnitTests() ? 0 : -1); Components::Loader::Uninitialize(); - exit(result); + ExitProcess(result); } #else if (Components::Flags::HasFlag("tests"))