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/2] 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); From 8ad7bf5d2bce3fd2508d07a87c4ecbe0200f4ba6 Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Tue, 2 Jul 2024 19:06:43 +0800 Subject: [PATCH 2/2] fix --- Sandboxie/core/drv/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sandboxie/core/drv/syscall.c b/Sandboxie/core/drv/syscall.c index 0cc159b3..2e245e7f 100644 --- a/Sandboxie/core/drv/syscall.c +++ b/Sandboxie/core/drv/syscall.c @@ -215,7 +215,7 @@ _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)) { + if (Conf_Get_Boolean(NULL, L"Improve3DGameRate", 0, FALSE)) { PATTERN* pat = Pattern_Create(Driver_Pool, L"WaitForSingleObject", FALSE, 0); if (pat) List_Insert_After(&disabled_hooks, NULL, pat);