NECKO only build bustage fixes...

This commit is contained in:
rpotts%netscape.com 1999-07-22 07:59:34 +00:00
parent 9ac7d39256
commit a6920e5cb4

View File

@ -995,14 +995,24 @@ nsInstall::LoadResources(JSContext* cx, const nsString& aBaseName, jsval* aRetur
// get the string bundle using the extracted properties file
#if 1
{
#ifndef NECKO
const char* spec = nsnull;
#else
char* spec = nsnull;
#endif /* NECKO */
ret = url->GetSpec(&spec);
if (NS_FAILED(ret)) {
printf("cannot get url spec\n");
nsServiceManager::ReleaseService(kStringBundleServiceCID, service);
#ifdef NECKO
nsCRT::free(spec);
#endif /* NECKO */
return ret;
}
ret = service->CreateBundle(spec, locale, &bundle);
#ifdef NECKO
nsCRT::free(spec);
#endif /* NECKO */
}
#else
ret = service->CreateBundle(url, locale, &bundle);