errf: use CUR_PROCESS_HANDLE instead of hardcoded number

This commit is contained in:
fincs 2020-07-16 16:11:27 +02:00
parent c1c93b0880
commit 5872ad60be
No known key found for this signature in database
GPG Key ID: 62C7609ADA219C60

View File

@ -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);