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