From 3f469e147f21ae38292a6971f9f6f2e061f79af1 Mon Sep 17 00:00:00 2001 From: bunnei Date: Fri, 6 Jun 2014 00:44:44 -0400 Subject: [PATCH] SVC: Moved declaration of "wait" variable in SendSyncRequest for improved readability. --- src/core/hle/svc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 01fc056a1..76c6a0771 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -90,12 +90,12 @@ Result ConnectToPort(void* _out, const char* port_name) { /// Synchronize to an OS service Result SendSyncRequest(Handle handle) { - bool wait = false; Kernel::Object* object = Kernel::g_object_pool.GetFast(handle); _assert_msg_(KERNEL, (object != nullptr), "called, but kernel object is nullptr!"); DEBUG_LOG(SVC, "called handle=0x%08X(%s)", handle, object->GetTypeName()); + bool wait = false; Result res = object->SyncRequest(&wait); if (wait) { Kernel::WaitCurrentThread(WAITTYPE_SYNCH); // TODO(bunnei): Is this correct?