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