aboutsummaryrefslogtreecommitdiff
path: root/patches.c
diff options
context:
space:
mode:
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;