Fix incorrect ref count comparison spotted by Ingo.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42099 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
anevilyak 2011-06-11 14:07:55 +00:00
parent 5fb0d3a67a
commit 448068fcce

View File

@ -293,7 +293,7 @@ private:
if (file == NULL)
return NULL;
if (file->AcquireReference() == 1) {
if (file->AcquireReference() == 0) {
fEntries.Remove(file);
fDeadEntries.Insert(file);
} else