mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02:00
Always use -1 for failed allocs in block allocator.
Before it used 0 and -1, confusing.
This commit is contained in:
1 parent
373f1f8655
commit
dcd3045cd5
4 files changed
+16
-8
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user