From fb9080a0f115f6a44d5b8b664d9d979c201cb181 Mon Sep 17 00:00:00 2001 From: zhen-zen <66577170+zhen-zen@users.noreply.github.com> Date: Mon, 6 Sep 2021 01:58:33 -0700 Subject: [PATCH] Use method routeMultipleLong instead of routeMultiple in order to avoid conflict with DebugEnhancer (#1) --- Changelog.md | 3 +++ HibernationFixup/kern_hbfx.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index e1683f2..e25d96d 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,8 @@ HibernationFixup Changelog ============================ +#### v1.4.3 +- Use method routeMultipleLong instead of routeMultiple in order to avoid conflict with DebugEnhancer + #### v1.4.2 - Use method routeMultipleLong instead of routeMultiple in order to avoid conflict with future versions of CpuTscSync diff --git a/HibernationFixup/kern_hbfx.cpp b/HibernationFixup/kern_hbfx.cpp index 970a2a1..0ee316f 100644 --- a/HibernationFixup/kern_hbfx.cpp +++ b/HibernationFixup/kern_hbfx.cpp @@ -591,7 +591,7 @@ void HBFX::processKernel(KernelPatcher &patcher) if (nvram_patches_required) { KernelPatcher::RouteRequest request {"_IOHibernateSystemSleep", IOHibernateSystemSleep, orgIOHibernateSystemSleep}; - if (!patcher.routeMultiple(KernelPatcher::KernelID, &request, 1)) { + if (!patcher.routeMultipleLong(KernelPatcher::KernelID, &request, 1)) { SYSLOG("HBFX", "patcher.routeMultiple for %s is failed with error %d", request.symbol, patcher.getError()); patcher.clearError(); }