mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Removed unnecessary code in SingleCore option
* GetCurrentProcess returns a pseudo handle, with which calling the CloseHandle function has no effect.
This commit is contained in:
@@ -934,7 +934,6 @@ void MiscPatches::init() {
|
|||||||
dlogr("Applying single core patch.", DL_INIT);
|
dlogr("Applying single core patch.", DL_INIT);
|
||||||
HANDLE process = GetCurrentProcess();
|
HANDLE process = GetCurrentProcess();
|
||||||
SetProcessAffinityMask(process, 2); // use only CPU 1
|
SetProcessAffinityMask(process, 2); // use only CPU 1
|
||||||
CloseHandle(process);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user