fix for bug 130095 - don't use unicode character conversion in the standalone xpinstaller - causes a crash.
r=cathleen, sr=dveditz, a=asa git-svn-id: svn://10.0.0.236/trunk@116502 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -587,9 +587,11 @@ nsInstallFolder::MapNameToEnum(const nsString& name)
|
||||
if ( name.IsEmpty())
|
||||
return -1;
|
||||
|
||||
// safe because all strings in DirectoryTable are ASCII
|
||||
NS_LossyConvertUCS2toASCII asciiName(name);
|
||||
while ( DirectoryTable[i].directoryName[0] != 0 )
|
||||
{
|
||||
if ( name.EqualsIgnoreCase(DirectoryTable[i].directoryName) )
|
||||
if ( asciiName.EqualsIgnoreCase(DirectoryTable[i].directoryName) )
|
||||
return DirectoryTable[i].folderEnum;
|
||||
i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user