fix for #126677. dates not showing up in thread pane

or message pane on windows.  r/sr=bienvenu, a=leaf.
This commit is contained in:
sspitzer%netscape.com 2002-02-20 18:24:47 +00:00
parent 0e2122791d
commit 1ea54fa3cb

View File

@ -63,14 +63,14 @@ nsresult nsDateTimeFormatWin::Initialize(nsILocale* locale)
// use cached info if match with stored locale
if (NULL == locale) {
if (mLocale.Equals(mAppLocale, nsCaseInsensitiveStringComparator())) {
if (mLocale.Length() && mLocale.Equals(mAppLocale, nsCaseInsensitiveStringComparator())) {
return NS_OK;
}
}
else {
res = locale->GetCategory(aCategory.get(), &aLocaleUnichar);
if (NS_SUCCEEDED(res) && NULL != aLocaleUnichar) {
if (mLocale.Equals(nsDependentString(aLocaleUnichar), nsCaseInsensitiveStringComparator())) {
if (mLocale.Length() && mLocale.Equals(nsDependentString(aLocaleUnichar), nsCaseInsensitiveStringComparator())) {
nsMemory::Free(aLocaleUnichar);
return NS_OK;
}