From 9c2d48f3743e4fd45cd75b835f01c76b29efda08 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sat, 28 Jan 2006 21:55:29 +0000 Subject: [PATCH] Fixed bug already fixed in the Haiku version. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16126 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/build/libbe/storage/AppFileInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/libbe/storage/AppFileInfo.cpp b/src/build/libbe/storage/AppFileInfo.cpp index 7f7af81a51..c5823333af 100644 --- a/src/build/libbe/storage/AppFileInfo.cpp +++ b/src/build/libbe/storage/AppFileInfo.cpp @@ -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