Always use -1 for failed allocs in block allocator.

Before it used 0 and -1, confusing.
This commit is contained in:
Unknown W. Brackets
2013-01-18 01:38:12 -08:00
parent 373f1f8655
commit dcd3045cd5
4 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ public:
{
stackBlock = userMemory.Alloc(stackSize, true, (std::string("stack/") + nt.name).c_str());
}
if (stackBlock == (u32)-1 || stackBlock == 0)
if (stackBlock == (u32)-1)
{
stackBlock = 0;
ERROR_LOG(HLE, "Failed to allocate stack for thread");