unity: fixed option loading crash

This commit is contained in:
Dniel97 2024-08-05 20:49:47 +02:00
parent 92fe2751e7
commit fe14630b3d
Signed by untrusted user: Dniel97
GPG Key ID: 6180B3C768FB2E08

View File

@ -139,11 +139,13 @@ static HMODULE WINAPI hook_LoadLibraryW(const wchar_t *name)
dll_hook_insert_hooks(result); dll_hook_insert_hooks(result);
path_hook_insert_hooks(result); path_hook_insert_hooks(result);
// printer_hook_insert_hooks(result);
reg_hook_insert_hooks(result); reg_hook_insert_hooks(result);
proc_addr_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);
} }
} }