Added an assert_not_null for native_ptr in XObject::GetObject.

This commit is contained in:
gibbed 2015-05-24 13:42:31 -05:00
parent 5c404ddfdb
commit f1d0fe909f
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ void XObject::SetNativePointer(uint32_t native_ptr, bool uninitialized) {
XObject* XObject::GetObject(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