Fixes for NECKO build...
git-svn-id: svn://10.0.0.236/trunk@40627 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -399,14 +399,24 @@ Wallet_Localize(char* genericString) {
|
||||
nsILocale* locale = nsnull;
|
||||
nsIStringBundle* bundle = nsnull;
|
||||
#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, pStringService);
|
||||
#ifdef NECKO
|
||||
nsCRT::free(spec);
|
||||
#endif /* NECKO */
|
||||
return v.ToNewCString();
|
||||
}
|
||||
ret = pStringService->CreateBundle(spec, locale, &bundle);
|
||||
#ifdef NECKO
|
||||
nsCRT::free(spec);
|
||||
#endif /* NECKO */
|
||||
#else
|
||||
ret = pStringService->CreateBundle(url, locale, &bundle);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user