assert_unhandled_case on ObReferenceObjectByHandle.

This commit is contained in:
Ben Vanik
2015-02-02 22:33:15 -08:00
parent 05f008d6ce
commit c33613b2f8
2 changed files with 6 additions and 1 deletions

View File

@@ -35,13 +35,17 @@ SHIM_CALL ObReferenceObjectByHandle_shim(PPCContext* ppc_state,
// TODO(benvanik): verify type with object_type_ptr
// TODO(benvanik): get native value, if supported.
uint32_t native_ptr = 0xDEADF00D;
uint32_t native_ptr;
switch (object_type_ptr) {
case 0xD01BBEEF: // ExThreadObjectType
{
XThread* thread = (XThread*)object;
native_ptr = thread->thread_state();
} break;
default:
assert_unhandled_case(object_type_ptr);
native_ptr = 0xDEADF00D;
break;
}
if (out_object_ptr) {