Fixed bug already fixed in the Haiku version.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16126 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2006-01-28 21:55:29 +00:00
parent de3b6032e7
commit 9c2d48f374

View File

@ -1118,7 +1118,7 @@ BAppFileInfo::_ReadData(const char *name, int32 id, type_code type,
error = B_ERROR;
}
} else
} else if (!foundData)
error = B_BAD_VALUE;
// return the allocated buffer, or free it on error