Whoops. I'm tired.
This commit is contained in:
parent
3b2035a054
commit
6aec2c0d02
|
@ -70,27 +70,27 @@ SHIM_CALL ObReferenceObjectByHandle_shim(PPCContext* ppc_state,
|
||||||
switch (object->type()) {
|
switch (object->type()) {
|
||||||
// TODO(benvanik): need to track native_ptr in XObject, allocate as
|
// TODO(benvanik): need to track native_ptr in XObject, allocate as
|
||||||
// needed?
|
// needed?
|
||||||
/*case XObject::kTypeEvent:
|
/*case XObject::kTypeEvent: {
|
||||||
XEvent* ev = (XEvent*)object;
|
XEvent* ev = (XEvent*)object;
|
||||||
break;*/
|
} break;*/
|
||||||
case XObject::kTypeThread:
|
case XObject::kTypeThread: {
|
||||||
XThread* thread = (XThread*)object;
|
XThread* thread = (XThread*)object;
|
||||||
native_ptr = thread->thread_state_ptr();
|
native_ptr = thread->thread_state_ptr();
|
||||||
break;
|
} break;
|
||||||
default:
|
default: {
|
||||||
assert_unhandled_case(object->type());
|
assert_unhandled_case(object->type());
|
||||||
native_ptr = 0xDEADF00D;
|
native_ptr = 0xDEADF00D;
|
||||||
break;
|
} break;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case 0xD01BBEEF: { // ExThreadObjectType
|
case 0xD01BBEEF: { // ExThreadObjectType
|
||||||
XThread* thread = (XThread*)object;
|
XThread* thread = (XThread*)object;
|
||||||
native_ptr = thread->thread_state_ptr();
|
native_ptr = thread->thread_state_ptr();
|
||||||
} break;
|
} break;
|
||||||
default:
|
default: {
|
||||||
assert_unhandled_case(object_type_ptr);
|
assert_unhandled_case(object_type_ptr);
|
||||||
native_ptr = 0xDEADF00D;
|
native_ptr = 0xDEADF00D;
|
||||||
break;
|
} break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (out_object_ptr) {
|
if (out_object_ptr) {
|
||||||
|
|
Loading…
Reference in New Issue