Skip to content

Commit 13c3ac8

Browse files
committed
Removed unnecessary code in SingleCore option
* GetCurrentProcess returns a pseudo handle, with which calling the CloseHandle function has no effect.
1 parent 03af7b1 commit 13c3ac8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sfall/Modules/MiscPatches.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,6 @@ void MiscPatches::init() {
934934
dlogr("Applying single core patch.", DL_INIT);
935935
HANDLE process = GetCurrentProcess();
936936
SetProcessAffinityMask(process, 2); // use only CPU 1
937-
CloseHandle(process);
938937
}
939938
}
940939

0 commit comments

Comments
 (0)