Fixed error case to return error.

git-svn-id: svn://10.0.0.236/trunk@58912 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
2000-01-27 09:21:00 +00:00
parent 6ab345a11d
commit e9ed17a69b

View File

@@ -150,6 +150,7 @@ nsJAR::GetEntry(const char *zipEntry, nsIZipEntry* *result)
{
nsZipItem item;
PRInt32 err = mZip.GetItem(zipEntry, &item);
if (err != 0) return NS_ERROR_FAILURE;
nsJARItem* jarItem = new nsJARItem();
if (jarItem == nsnull)