Skip to content

Commit

Permalink
Fixed bug with package check hook
Browse files Browse the repository at this point in the history
  • Loading branch information
yifanlu committed Nov 6, 2016
1 parent c041420 commit a524c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hen.c
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ int hen_add_patches(void) {
LOG("package_check added");
if (g_hooks[6] < 0) goto fail;
g_hooks[7] = taiHookFunctionImportForKernel(KERNEL_PID,
&g_package_check_hook,
&g_package_check_2_hook,
"SceNpDrm",
0xFD00C69A, // SceSblAIMgrForDriver
0xF4B98F66,
Expand Down Expand Up @@ -566,7 +566,7 @@ int hen_add_patches(void) {
taiHookReleaseForKernel(g_hooks[6], g_package_check_hook);
}
if (g_hooks[7] >= 0) {
taiHookReleaseForKernel(g_hooks[7], g_package_check_hook);
taiHookReleaseForKernel(g_hooks[7], g_package_check_2_hook);
}
if (g_hooks[8] >= 0) {
taiHookReleaseForKernel(g_hooks[8], g_load_user_libs_hook);
Expand Down

0 comments on commit a524c9d

Please sign in to comment.