mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-14 22:03:27 +01:00
make sure we set system_affinity before using SetThreadAffinityMask
This commit is contained in:
parent
30e8b70f4d
commit
1bd4493fbe
3
src/dd.c
3
src/dd.c
@ -1826,6 +1826,9 @@ HRESULT dd_CreateEx(GUID* lpGuid, LPVOID* lplpDD, REFIID iid, IUnknown* pUnkOute
|
||||
{
|
||||
if (!IsWine() && IsWindows11OrGreater())
|
||||
{
|
||||
if (GetProcessAffinityMask(proc, &proc_affinity, &system_affinity))
|
||||
SetProcessAffinityMask(proc, system_affinity);
|
||||
|
||||
util_set_process_affinity();
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user