diff --git a/modules/libjar/nsZipArchive.cpp b/modules/libjar/nsZipArchive.cpp index f656cdb5d90b..0f5afdc6989b 100644 --- a/modules/libjar/nsZipArchive.cpp +++ b/modules/libjar/nsZipArchive.cpp @@ -696,7 +696,8 @@ nsZipArchive::FindInit(const char * aPattern, nsZipFind **aFind) // Create synthetic directory entries on demand nsresult rv = BuildSynthetics(); - if (NS_FAILED(rv)) return rv; + // XXX NS_FAILED doesn't exist when building STANDALONE + if (rv & 0x80000000) return rv; // validate the pattern if (aPattern)