diff --git a/src/kits/storage/NodeInfo.cpp b/src/kits/storage/NodeInfo.cpp index d78972f0eb..b5fe2621ce 100644 --- a/src/kits/storage/NodeInfo.cpp +++ b/src/kits/storage/NodeInfo.cpp @@ -631,7 +631,7 @@ BNodeInfo::GetTrackerIcon(BBitmap *icon, icon_size iconSize) const if (error == B_OK) { if (GetType(mimeString) != B_OK) { struct stat stat; - error = fNode->GetStat(&stat) == B_OK; + error = fNode->GetStat(&stat); if (error == B_OK) { // no type available -- get the icon for the appropriate type (file/dir/etc.) BMimeType type;