diff --git a/MarathonRecomp/kernel/heap.cpp b/MarathonRecomp/kernel/heap.cpp index de582c27e..6af2e7e19 100644 --- a/MarathonRecomp/kernel/heap.cpp +++ b/MarathonRecomp/kernel/heap.cpp @@ -2,6 +2,7 @@ #include "heap.h" #include "memory.h" #include "function.h" +#include "xdm.h" constexpr size_t RESERVED_BEGIN = 0x7FEA0000; constexpr size_t RESERVED_END = 0xA0000000; diff --git a/MarathonRecomp/kernel/imports.cpp b/MarathonRecomp/kernel/imports.cpp index 82693f353..5c55cc3be 100644 --- a/MarathonRecomp/kernel/imports.cpp +++ b/MarathonRecomp/kernel/imports.cpp @@ -575,9 +575,9 @@ uint32_t RtlNtStatusToDosError(uint32_t Status) switch (Status) { - case STATUS_NOT_IMPLEMENTED: + case uint32_t(STATUS_NOT_IMPLEMENTED): return ERROR_CALL_NOT_IMPLEMENTED; - case STATUS_SEMAPHORE_LIMIT_EXCEEDED: + case uint32_t(STATUS_SEMAPHORE_LIMIT_EXCEEDED): return ERROR_TOO_MANY_POSTS; default: LOGF_WARNING("Unimplemented NtStatus translation: {:#08x}", Status);