Always use -1 for failed allocs in block allocator.

Before it used 0 and -1, confusing.
This commit is contained in:
Unknown W. Brackets committed 2013-01-18 01:38:12 -08:00
1 parent 373f1f8655
commit dcd3045cd5
4 files changed
+16 -8

No files matched your search

+1 -1
View File
@@ -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);