From 0b75d409d249a69090c7be91564e33ae4f841f97 Mon Sep 17 00:00:00 2001 From: gibbed Date: Wed, 27 May 2015 15:06:11 -0500 Subject: [PATCH] Somehow this assert got removed. --- src/xenia/kernel/xobject.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenia/kernel/xobject.cc b/src/xenia/kernel/xobject.cc index 1f6ad8d7a..b225be5e4 100644 --- a/src/xenia/kernel/xobject.cc +++ b/src/xenia/kernel/xobject.cc @@ -182,6 +182,8 @@ void XObject::SetNativePointer(uint32_t native_ptr, bool uninitialized) { object_ref XObject::GetNativeObject(KernelState* kernel_state, void* native_ptr, int32_t as_type) { + assert_not_null(native_ptr); + // Unfortunately the XDK seems to inline some KeInitialize calls, meaning // we never see it and just randomly start getting passed events/timers/etc. // Luckily it seems like all other calls (Set/Reset/Wait/etc) are used and