Skip to content

Commit

Permalink
Use method routeMultipleLong instead of routeMultiple in order to avo…
Browse files Browse the repository at this point in the history
…id conflict with futire versions of CpuTscSync
  • Loading branch information
lvs1974 committed Aug 1, 2021
1 parent 912a906 commit 66b5b07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
HibernationFixup Changelog
============================
#### v1.4.2
- Use method routeMultipleLong instead of routeMultiple in order to avoid conflict with futire versions of CpuTscSync

#### v1.4.1
- Added constants for macOS 12 support.

Expand Down
2 changes: 1 addition & 1 deletion HibernationFixup/kern_hbfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ void HBFX::processKernel(KernelPatcher &patcher)
{"__ZN14IOPMrootDomain26setMaintenanceWakeCalendarEPK18IOPMCalendarStruct", IOPMrootDomain_setMaintenanceWakeCalendar, orgIOPMrootDomain_setMaintenanceWakeCalendar},
{"_IOHibernateSystemWake", IOHibernateSystemWake, orgIOHibernateSystemWake}
};
if (!patcher.routeMultiple(KernelPatcher::KernelID, requests, arrsize(requests))) {
if (!patcher.routeMultipleLong(KernelPatcher::KernelID, requests, arrsize(requests))) {
SYSLOG("HBFX", "patcher.routeMultiple for %s is failed with error %d", requests[0].symbol, patcher.getError());
patcher.clearError();
}
Expand Down

0 comments on commit 66b5b07

Please sign in to comment.