From d444cfedb7dbc3e897a09f12063a4be9ebcd5883 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 27 Mar 2023 23:22:06 +0200 Subject: [PATCH] Call OSCheckActiveThreads(); --- wumsloader/src/entry.cpp | 1 + wumsloader/src/utils/imports.h | 1 + 2 files changed, 2 insertions(+) diff --git a/wumsloader/src/entry.cpp b/wumsloader/src/entry.cpp index a6e10a9..4f216b9 100644 --- a/wumsloader/src/entry.cpp +++ b/wumsloader/src/entry.cpp @@ -52,6 +52,7 @@ extern "C" int _start(int argc, char **argv) { "r"(kernelInfo0.sda2Base) :); + OSCheckActiveThreads(); return ((int (*)(int, char **))(*(unsigned int *) 0x1005E040))(argc, argv); } diff --git a/wumsloader/src/utils/imports.h b/wumsloader/src/utils/imports.h index 8087c91..52d09ba 100644 --- a/wumsloader/src/utils/imports.h +++ b/wumsloader/src/utils/imports.h @@ -35,6 +35,7 @@ IMPORT(OSSwapAtomic); IMPORT(OSDynLoad_GetAllocator); IMPORT(OSDynLoad_SetAllocator); IMPORT(__KernelGetInfo); +IMPORT(OSCheckActiveThreads); IMPORT(FSTimeToCalendarTime); IMPORT(FSInit);