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:
parent
11645f0e51
commit
32d36fb5da
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user