mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
NECKO only build bustage fixes...
This commit is contained in:
parent
9ac7d39256
commit
a6920e5cb4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user