errf: use CUR_PROCESS_HANDLE instead of hardcoded number
This commit is contained in:
parent
c1c93b0880
commit
5872ad60be
@ -54,7 +54,7 @@ Result ERRF_Throw(const ERRF_FatalErrInfo* error)
|
|||||||
static inline void getCommonErrorData(ERRF_FatalErrInfo* error, Result failure)
|
static inline void getCommonErrorData(ERRF_FatalErrInfo* error, Result failure)
|
||||||
{
|
{
|
||||||
error->resCode = failure;
|
error->resCode = failure;
|
||||||
svcGetProcessId(&error->procId, 0xFFFF8001);
|
svcGetProcessId(&error->procId, CUR_PROCESS_HANDLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result ERRF_ThrowResult(Result failure)
|
Result ERRF_ThrowResult(Result failure)
|
||||||
@ -125,7 +125,7 @@ void ERRF_ExceptionHandler(ERRF_ExceptionInfo* excep, CpuRegisters* regs)
|
|||||||
error.pcAddr = regs->pc;
|
error.pcAddr = regs->pc;
|
||||||
getCommonErrorData(&error, 0);
|
getCommonErrorData(&error, 0);
|
||||||
error.data.exception_data.excep = *excep;
|
error.data.exception_data.excep = *excep;
|
||||||
error.data.exception_data.regs = *regs;
|
error.data.exception_data.regs = *regs;
|
||||||
|
|
||||||
ret = ERRF_Throw(&error);
|
ret = ERRF_Throw(&error);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user