Minor fix in XThread - checking the wrong address for NULL

This commit is contained in:
Dr. Chat 2015-06-09 18:58:45 -05:00
parent 72a641efac
commit 41f1023549
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ X_STATUS XThread::Create() {
// structure. // structure.
pcr_address_ = memory()->SystemHeapAlloc(0x2D8 + 0xAB0); pcr_address_ = memory()->SystemHeapAlloc(0x2D8 + 0xAB0);
thread_state_address_ = pcr_address_ + 0x2D8; thread_state_address_ = pcr_address_ + 0x2D8;
if (!thread_state_address_) { if (!pcr_address_) {
XELOGW("Unable to allocate thread state block"); XELOGW("Unable to allocate thread state block");
return X_STATUS_NO_MEMORY; return X_STATUS_NO_MEMORY;
} }