mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 09:19: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
@@ -765,7 +765,7 @@ void SavedataParam::SetFileInfo(int idx, PSPFileInfo &info, std::string saveName
|
||||
u32 atlasPtr;
|
||||
if (success)
|
||||
atlasPtr = kernelMemory.Alloc(texSize, true, "SaveData Icon");
|
||||
if (success && atlasPtr > 0)
|
||||
if (success && atlasPtr != -1)
|
||||
{
|
||||
saveDataList[idx].textureData = atlasPtr;
|
||||
Memory::Memcpy(atlasPtr, textureData, texSize);
|
||||
|
||||
Reference in new issue
Block a user