PackageLinksDirectory::AddPackage(): Fix check
This commit is contained in:
parent
1becdcc7c8
commit
70c2780c73
@ -116,7 +116,7 @@ PackageLinksDirectory::AddPackage(Package* package)
|
||||
// There already is an entry with the name.
|
||||
PackageLinkDirectory* otherLinkDirectory
|
||||
= dynamic_cast<PackageLinkDirectory*>(child);
|
||||
if (otherLinkDirectory != NULL)
|
||||
if (otherLinkDirectory == NULL)
|
||||
RETURN_ERROR(B_BAD_VALUE);
|
||||
|
||||
// There's already a package link directory. Delete the one we created
|
||||
|
Loading…
Reference in New Issue
Block a user