1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Release ClipCursor on process exit

Fixes the cursor remaining confined if the app crashes while exiting.
Tested with Sacred Gold.
This commit is contained in:
narzoul 2024-04-14 11:48:30 +02:00
parent 11645f0e51
commit 32d36fb5da

View File

@ -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)