Bug 1783621 - Use unicode strings in Windows shell service. r=frg
Port Bug 1772006 "Clean up nsString implementation source files".
This commit is contained in:
Родитель
0d14a0bc33
Коммит
f7446c1e01
|
@ -362,10 +362,10 @@ nsWindowsShellService::TestForDefault(SETTING aSettings[], int32_t aSize)
|
|||
NS_ConvertUTF8toUTF16 key(settings->keyName);
|
||||
NS_ConvertUTF8toUTF16 value(settings->valueName);
|
||||
if (settings->flags & APP_PATH_SUBSTITUTION) {
|
||||
int32_t offset = dataLongPath.Find("%APPPATH%");
|
||||
int32_t offset = dataLongPath.Find(u"%APPPATH%");
|
||||
dataLongPath.Replace(offset, 9, mAppLongPath);
|
||||
// Remove the quotes around %APPPATH% in VAL_OPEN for short paths
|
||||
int32_t offsetQuoted = dataShortPath.Find("\"%APPPATH%\"");
|
||||
int32_t offsetQuoted = dataShortPath.Find(u"\"%APPPATH%\"");
|
||||
if (offsetQuoted != -1)
|
||||
dataShortPath.Replace(offsetQuoted, 11, mAppShortPath);
|
||||
else
|
||||
|
|
Загрузка…
Ссылка в новой задаче