From 6aec2c0d02747325ee8a80a88640a92133830b43 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Wed, 13 May 2015 00:38:55 -0700 Subject: [PATCH] Whoops. I'm tired. --- src/xenia/kernel/xboxkrnl_ob.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/xenia/kernel/xboxkrnl_ob.cc b/src/xenia/kernel/xboxkrnl_ob.cc index 2c22d1a93..8e8a874c5 100644 --- a/src/xenia/kernel/xboxkrnl_ob.cc +++ b/src/xenia/kernel/xboxkrnl_ob.cc @@ -70,27 +70,27 @@ SHIM_CALL ObReferenceObjectByHandle_shim(PPCContext* ppc_state, switch (object->type()) { // TODO(benvanik): need to track native_ptr in XObject, allocate as // needed? - /*case XObject::kTypeEvent: + /*case XObject::kTypeEvent: { XEvent* ev = (XEvent*)object; - break;*/ - case XObject::kTypeThread: + } break;*/ + case XObject::kTypeThread: { XThread* thread = (XThread*)object; native_ptr = thread->thread_state_ptr(); - break; - default: + } break; + default: { assert_unhandled_case(object->type()); native_ptr = 0xDEADF00D; - break; + } break; } } break; case 0xD01BBEEF: { // ExThreadObjectType XThread* thread = (XThread*)object; native_ptr = thread->thread_state_ptr(); } break; - default: + default: { assert_unhandled_case(object_type_ptr); native_ptr = 0xDEADF00D; - break; + } break; } if (out_object_ptr) {