NECKO only build bustage fixes...
git-svn-id: svn://10.0.0.236/trunk@40643 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user