diff --git a/DDrawCompat/Dll/DllMain.cpp b/DDrawCompat/Dll/DllMain.cpp index 8b82041..1840bf3 100644 --- a/DDrawCompat/Dll/DllMain.cpp +++ b/DDrawCompat/Dll/DllMain.cpp @@ -361,6 +361,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) } else if (fdwReason == DLL_PROCESS_DETACH) { + CALL_ORIG_FUNC(ClipCursor)(nullptr); LOG_INFO << "DDrawCompat detached successfully"; } else if (fdwReason == DLL_THREAD_DETACH)