diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc index 22170cb1f..e49923338 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_rtl.cc @@ -512,6 +512,9 @@ static_assert(sizeof(X_TIME_FIELDS) == 16, "Must be LARGEINTEGER"); // https://support.microsoft.com/en-us/kb/167296 void RtlTimeToTimeFields(lpqword_t time_ptr, pointer_t time_fields_ptr) { + if (!time_ptr.value()) + return; + int64_t time_ms = time_ptr.value() / 10000 - 11644473600000LL; time_t timet = time_ms / 1000; struct tm* tm = gmtime(&timet);