From 41f102354903df2112f2c5906f639f0c26cca000 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Tue, 9 Jun 2015 18:58:45 -0500 Subject: [PATCH] Minor fix in XThread - checking the wrong address for NULL --- src/xenia/kernel/objects/xthread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/objects/xthread.cc b/src/xenia/kernel/objects/xthread.cc index 89db7072f..0222443e1 100644 --- a/src/xenia/kernel/objects/xthread.cc +++ b/src/xenia/kernel/objects/xthread.cc @@ -157,7 +157,7 @@ X_STATUS XThread::Create() { // structure. pcr_address_ = memory()->SystemHeapAlloc(0x2D8 + 0xAB0); thread_state_address_ = pcr_address_ + 0x2D8; - if (!thread_state_address_) { + if (!pcr_address_) { XELOGW("Unable to allocate thread state block"); return X_STATUS_NO_MEMORY; }