From 5872ad60bea20f8a013036fa266f027c74d9009b Mon Sep 17 00:00:00 2001 From: fincs Date: Thu, 16 Jul 2020 16:11:27 +0200 Subject: [PATCH] errf: use CUR_PROCESS_HANDLE instead of hardcoded number --- libctru/source/errf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libctru/source/errf.c b/libctru/source/errf.c index d5e65ad..48ce8f7 100644 --- a/libctru/source/errf.c +++ b/libctru/source/errf.c @@ -54,7 +54,7 @@ Result ERRF_Throw(const ERRF_FatalErrInfo* error) static inline void getCommonErrorData(ERRF_FatalErrInfo* error, Result failure) { error->resCode = failure; - svcGetProcessId(&error->procId, 0xFFFF8001); + svcGetProcessId(&error->procId, CUR_PROCESS_HANDLE); } Result ERRF_ThrowResult(Result failure) @@ -125,7 +125,7 @@ void ERRF_ExceptionHandler(ERRF_ExceptionInfo* excep, CpuRegisters* regs) error.pcAddr = regs->pc; getCommonErrorData(&error, 0); error.data.exception_data.excep = *excep; - error.data.exception_data.regs = *regs; + error.data.exception_data.regs = *regs; ret = ERRF_Throw(&error);