Fixes for NECKO build...

git-svn-id: svn://10.0.0.236/trunk@40627 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com
1999-07-22 06:54:30 +00:00
parent d2d894316b
commit 67f4168906

View File

@@ -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