[Kernel] Fixed nullptr in latest Guest->Host mapping revert
This commit is contained in:
parent
c8ca077ec4
commit
3675d6a6b1
|
@ -434,7 +434,9 @@ object_ref<XObject> XObject::GetNativeObject(KernelState* kernel_state,
|
||||||
}
|
}
|
||||||
// Stash pointer in struct.
|
// Stash pointer in struct.
|
||||||
// FIXME: This assumes the object contains a dispatch header (some don't!)
|
// FIXME: This assumes the object contains a dispatch header (some don't!)
|
||||||
StashHandle(header, object->handle());
|
if (object) {
|
||||||
|
StashHandle(header, object->handle());
|
||||||
|
}
|
||||||
result = object;
|
result = object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue