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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user