From ac871bada3b75f5f2d3e42839c873140b46468b7 Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Tue, 2 Jul 2024 18:52:19 +0800 Subject: [PATCH] 1.14.4 --- Sandboxie/core/drv/syscall.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sandboxie/core/drv/syscall.c b/Sandboxie/core/drv/syscall.c index 1af7fa7e..0cc159b3 100644 --- a/Sandboxie/core/drv/syscall.c +++ b/Sandboxie/core/drv/syscall.c @@ -215,6 +215,18 @@ _FX BOOLEAN Syscall_Init_List(void) LIST disabled_hooks; Syscall_LoadHookMap(L"DisableWinNtHook", &disabled_hooks); + if (Conf_Get_Boolean(Driver_Pool, L"Improve3DGameRate", 0, FALSE)) { + PATTERN* pat = Pattern_Create(Driver_Pool, L"WaitForSingleObject", FALSE, 0); + if (pat) + List_Insert_After(&disabled_hooks, NULL, pat); + pat = Pattern_Create(Driver_Pool, L"ReleaseSemaphore", FALSE, 0); + if (pat) + List_Insert_After(&disabled_hooks, NULL, pat); + pat = Pattern_Create(Driver_Pool, L"SetEvent", FALSE, 0); + if (pat) + List_Insert_After(&disabled_hooks, NULL, pat); + pat = Pattern_Create(Driver_Pool, L"ClearEvent", FALSE, 0); + } LIST approved_syscalls; Syscall_LoadHookMap(L"ApproveWinNtSysCall", &approved_syscalls);