Minor fix in XThread - checking the wrong address for NULL
This commit is contained in:
parent
72a641efac
commit
41f1023549
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue