mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
Always use -1 for failed allocs in block allocator.
Before it used 0 and -1, confusing.
This commit is contained in:
@@ -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