aboutsummaryrefslogtreecommitdiff
path: root/patches.c
diff options
context:
space:
mode:
authorReiko Asakura2021-03-16 16:44:50 -0400
committerReiko Asakura2021-03-16 16:44:50 -0400
commit474b5e343201ae3f6a1be928260d9df0f74568a9 (patch)
tree57e42ad56e991b28b8b3a1c19725c3171fe3077c /patches.c
parentFix missing #include <stddef.h> (diff)
downloadtaihen-master.tar.gz
Update for Vita Development Suite Libraries 0.3.0HEADmaster
Diffstat (limited to 'patches.c')
-rw-r--r--patches.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches.c b/patches.c
index 2c80680..619075d 100644
--- a/patches.c
+++ b/patches.c
@@ -296,7 +296,7 @@ static int tai_hook_function(struct slab_chain *slab, void *target_func, const v
uargs.pid = slab->pid;
uargs.hook = &hook;
uargs.saved = (struct substitute_function_hook_record **)saved;
- ret = sceKernelRunWithStack(0x4000, do_hooking, &uargs);
+ ret = sceKernelExtendKernelStack(0x4000, do_hooking, &uargs);
LOG("Done hooking");
if (ret != SUBSTITUTE_OK) {
LOG("libsubstitute error: %s", substitute_strerror(ret));
@@ -315,7 +315,7 @@ static int tai_hook_function(struct slab_chain *slab, void *target_func, const v
static int tai_unhook_function(void *saved) {
int ret;
LOG("Calling substitute_free_hooks");
- ret = sceKernelRunWithStack(0x4000, do_unhooking, saved);
+ ret = sceKernelExtendKernelStack(0x4000, do_unhooking, saved);
if (ret != SUBSTITUTE_OK) {
LOG("libsubstitute error: %s", substitute_strerror(ret));
return TAI_ERROR_HOOK_ERROR;