From fe14630b3ddd197c8a6ddb48dc9b27a1a8b5fa78 Mon Sep 17 00:00:00 2001 From: Dniel97 Date: Mon, 5 Aug 2024 20:49:47 +0200 Subject: [PATCH] unity: fixed option loading crash --- unityhook/hook.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/unityhook/hook.c b/unityhook/hook.c index bd380f9..c11e744 100644 --- a/unityhook/hook.c +++ b/unityhook/hook.c @@ -139,11 +139,13 @@ static HMODULE WINAPI hook_LoadLibraryW(const wchar_t *name) dll_hook_insert_hooks(result); path_hook_insert_hooks(result); - // printer_hook_insert_hooks(result); reg_hook_insert_hooks(result); proc_addr_insert_hooks(result); - serial_hook_apply_hooks(result); - iohook_apply_hooks(result); + + // Not needed? + // serial_hook_apply_hooks(result); + // Unity will crash during option loading when we hook this twice + // iohook_apply_hooks(result); } }