From 773be69904180566edb39b559ee120bf5023b5f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 26 Nov 2005 13:50:29 +0000 Subject: [PATCH] Fixed AppFileInfo::_ReadData(): it was always returning B_BAD_VALUE in case it read the data from attributes. Deskbar should now display all those application icons under Haiku as well :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15159 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/AppFileInfo.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kits/storage/AppFileInfo.cpp b/src/kits/storage/AppFileInfo.cpp index 4089868f5a..62ae1c7b44 100644 --- a/src/kits/storage/AppFileInfo.cpp +++ b/src/kits/storage/AppFileInfo.cpp @@ -1117,8 +1117,7 @@ BAppFileInfo::_ReadData(const char *name, int32 id, type_code type, else error = B_ERROR; } - - } else + } else if (!foundData) error = B_BAD_VALUE; // return the allocated buffer, or free it on error