bug 131161

mozilla crashed when open file where there is an chinese name file under the directory
check return value of GetUnicodeLeafName() also call Reset() for encoder and decoder to reset the state
r=shanjian,sr=darin,a=asa


git-svn-id: svn://10.0.0.236/trunk@118518 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
katakai%japan.sun.com
2002-04-09 01:54:09 +00:00
parent 8103da289c
commit 163e69b679
2 changed files with 18 additions and 1 deletions

View File

@@ -649,7 +649,10 @@ nsFileView::FilterFiles()
file->IsHidden(&isHidden);
nsXPIDLString unicodeLeafName;
file->GetUnicodeLeafName(getter_Copies(unicodeLeafName));
if(NS_FAILED(file->GetUnicodeLeafName(getter_Copies(unicodeLeafName)))) {
// need to check return value for GetUnicodeLeafName()
continue;
}
if (!isHidden) {
for (PRInt32 j = 0; j < filterCount; ++j) {