regedit: Use Unicode for registry key paths.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hugh McMaster 2016-07-15 07:50:16 +00:00 committed by Alexandre Julliard
parent 7c824cbfd4
commit fec0b697c7
48 changed files with 55 additions and 51 deletions

View File

@ -12240,7 +12240,7 @@ msgstr "لم يتم تحديد أي أمر."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "خطأ : تعذر إضافة المفاتيح للجهاز البعيد\n"
#: regedit.rc:375

View File

@ -11851,7 +11851,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -12134,7 +12134,7 @@ msgstr "desinstal·lador: No s'ha trobat l'aplicació amb la GUID '%1'\n"
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Error: No es pot accedir a la màquina remota\n"
#: regedit.rc:375

View File

@ -11929,7 +11929,7 @@ msgstr "Nebyl zadán žádný příkaz."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Chyba: Nepodařilo se přidat klíče na vzdálený stroj\n"
#: regedit.rc:375

View File

@ -12195,7 +12195,7 @@ msgstr "Der blev ikke specificeret nogen kommando."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Fejl: Kunne ikke tilføje nøgler til fjern maskinen\n"
#: regedit.rc:375

View File

@ -12089,7 +12089,7 @@ msgstr "Uninstaller: Die Anwendung mit der GUID '%1' wurde nicht gefunden\n"
#: regedit.rc:374
#, fuzzy
#| msgid "reg: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "reg: Auf den Remoterechner kann nicht zugegriffen werden\n"
#: regedit.rc:375

View File

@ -11636,7 +11636,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -12010,8 +12010,8 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr "regedit: The line '%1' was not recognized.\n"
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgstr "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "regedit: Unable to add the registry value '%1' to '%2'.\n"
#: regedit.rc:375
msgid "regedit: Unable to open the registry key '%1'.\n"

View File

@ -12010,8 +12010,8 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr "regedit: The line '%1' was not recognized.\n"
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgstr "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "regedit: Unable to add the registry value '%1' to '%2'.\n"
#: regedit.rc:375
msgid "regedit: Unable to open the registry key '%1'.\n"

View File

@ -11537,7 +11537,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -12274,7 +12274,7 @@ msgstr "No se ha especificado un comando."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Error: No se puede agregar claves al equipo remoto\n"
#: regedit.rc:375

View File

@ -11629,7 +11629,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -11997,7 +11997,7 @@ msgstr "regedit: Tiedostoa '%1' ei löydy.\n"
#: regedit.rc:374
#, fuzzy
#| msgid "regedit: Unable to open the file '%1'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "regedit: Tiedostoa '%1' ei voida avata.\n"
#: regedit.rc:375

View File

@ -12147,7 +12147,7 @@ msgstr "uninstaller : l'application de GUID « %1 » est introuvable\n"
#: regedit.rc:374
#, fuzzy
#| msgid "reg: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "reg : impossible d'accéder à une machine distante\n"
#: regedit.rc:375

View File

@ -12012,7 +12012,7 @@ msgstr ""
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Error: Unable to add keys to remote machine\n"
#: regedit.rc:375

View File

@ -11427,7 +11427,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -11746,7 +11746,7 @@ msgstr ""
#: regedit.rc:374
#, fuzzy
#| msgid "Could not open the file."
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Datoteka se ne može otvoriti."
#: regedit.rc:375

View File

@ -12192,7 +12192,7 @@ msgstr "Nem volt parancs meghatározva."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Hiba: nem lehet kulcsokat hozzáadni a távoli gépnél\n"
#: regedit.rc:375

View File

@ -12275,7 +12275,7 @@ msgstr "Non è stato specificato nessun comando."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Errore: impossibile aggiungere chiavi alla macchina remota\n"
#: regedit.rc:375

View File

@ -11989,7 +11989,7 @@ msgstr "uninstaller: GUID '%1' のアプリケーションは見つかりませ
#: regedit.rc:374
#, fuzzy
#| msgid "reg: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "reg: リモート マシンにアクセスできませんでした\n"
#: regedit.rc:375

View File

@ -12262,7 +12262,7 @@ msgstr "어떤 명령도 정의되지 않았습니다."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "오류: 원격 머신에 키를 더하는 것은 가능하지 않습니다\n"
#: regedit.rc:375

View File

@ -12023,7 +12023,7 @@ msgstr "regedit: Failas „%1“ nerastas.\n"
#: regedit.rc:374
#, fuzzy
#| msgid "regedit: Unable to open the file '%1'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "regedit: Nepavyko atverti failo „%1“.\n"
#: regedit.rc:375

View File

@ -11427,7 +11427,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -12017,7 +12017,7 @@ msgstr "regedit: Filen \"%1\" ble ikke funnet.\n"
#: regedit.rc:374
#, fuzzy
#| msgid "regedit: Unable to open the file '%1'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "regedit: Kan ikke åpne filen \"%1\".\n"
#: regedit.rc:375

View File

@ -12240,7 +12240,7 @@ msgstr "Er was geen opdracht opgegeven."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Fout: Sleutels konden niet toegevoegd worden aan de remote machine\n"
#: regedit.rc:375

View File

@ -11427,7 +11427,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -11427,7 +11427,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -12089,7 +12089,7 @@ msgstr "usuwanie programów: Nie znaleziono aplikacji o GUID '%1'\n"
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Błąd: Błąd dostępu do zdalnej maszyny\n"
#: regedit.rc:375

View File

@ -12096,7 +12096,7 @@ msgstr "Nenhum comando foi especificado."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Erro: Não foi possível acessar a máquina remota\n"
#: regedit.rc:375

View File

@ -12070,7 +12070,7 @@ msgstr "Nenhum comando indicado."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Erro: Incapaz de adicionar chaves à máquina remota\n"
#: regedit.rc:375

View File

@ -11514,7 +11514,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -12284,7 +12284,7 @@ msgstr "Nu a fost specificată nici o comandă."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Eroare: Nu se pot adăuga chei pe calculatorul de la distanță\n"
#: regedit.rc:375

View File

@ -12020,7 +12020,7 @@ msgstr "regedit: файл «%1» не найден.\n"
#: regedit.rc:374
#, fuzzy
#| msgid "regedit: Unable to open the file '%1'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "regedit: не удалось открыть файл «%1».\n"
#: regedit.rc:375

View File

@ -11716,7 +11716,7 @@ msgstr "Nebol špecifikovaný žiadny príkaz."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to terminate process \"%1\".\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Chyba: Nemožno ukončiť proces \"%1\".\n"
#: regedit.rc:375

View File

@ -12216,7 +12216,7 @@ msgstr "Ukaz ni bil naveden."
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Napaka: ni mogoče dodati ključa na oddaljen računalnik\n"
#: regedit.rc:375

View File

@ -12118,7 +12118,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -12265,7 +12265,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -11889,7 +11889,7 @@ msgstr "Inget kommando angavs."
#: regedit.rc:374
#, fuzzy
#| msgid "reg: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "reg: Kan inte få tillgång till fjärrmaskin\n"
#: regedit.rc:375

View File

@ -11427,7 +11427,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -11669,7 +11669,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -12059,7 +12059,7 @@ msgstr "uninstaller: GUID'i '%1' olan uygulama bulunamadı\n"
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "Hata: Uzak makineye erişilemiyor\n"
#: regedit.rc:375

View File

@ -12105,7 +12105,7 @@ msgstr "regedit: Файл '%1' не знайдено.\n"
#: regedit.rc:374
#, fuzzy
#| msgid "regedit: Unable to open the file '%1'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "regedit: Неможливо відкрити файл '%1'.\n"
#: regedit.rc:375

View File

@ -11577,7 +11577,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -11363,7 +11363,7 @@ msgid "regedit: The line '%1' was not recognized.\n"
msgstr ""
#: regedit.rc:374
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr ""
#: regedit.rc:375

View File

@ -11549,7 +11549,7 @@ msgstr "uninstaller: 未找到 GUID 为 '%1' 的应用程序\n"
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to access remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "错误:无法访问远程机器\n"
#: regedit.rc:375

View File

@ -12147,7 +12147,7 @@ msgstr "沒有任何命令被指定。"
#: regedit.rc:374
#, fuzzy
#| msgid "Error: Unable to add keys to remote machine\n"
msgid "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
msgid "regedit: Unable to add the registry value '%1' to '%2'.\n"
msgstr "錯誤:無法加入索引鍵到遠端機器\n"
#: regedit.rc:375

View File

@ -370,7 +370,7 @@ STRINGTABLE
STRING_UNKNOWN_DATA_FORMAT, "regedit: Unsupported registry data type [%1!u!]\n"
STRING_UNEXPECTED_EOL, "regedit: Unexpected end of line in '%1'.\n"
STRING_UNRECOGNIZED_LINE, "regedit: The line '%1' was not recognized.\n"
STRING_SETVALUE_FAILED, "regedit: Unable to add the registry value '%1' to '%2!S!'.\n"
STRING_SETVALUE_FAILED, "regedit: Unable to add the registry value '%1' to '%2'.\n"
STRING_OPEN_KEY_FAILED, "regedit: Unable to open the registry key '%1'.\n"
STRING_UNSUPPORTED_TYPE, "regedit: Unsupported registry data type [%1!u!] encountered in '%2'.\n"
STRING_EXPORT_AS_BINARY, "regedit: The registry value '%1' will be exported as binary data.\n"

View File

@ -336,7 +336,7 @@ static BOOL parseKeyName(LPWSTR lpKeyName, HKEY *hKey, LPWSTR *lpKeyPath)
}
/* Globals used by the setValue() & co */
static LPSTR currentKeyName;
static WCHAR *currentKeyName;
static HKEY currentKeyHandle = NULL;
/******************************************************************************
@ -447,7 +447,11 @@ static LONG openKeyW(WCHAR* stdInput)
REG_OPENED_EXISTING_KEY */
if (res == ERROR_SUCCESS)
currentKeyName = GetMultiByteString(stdInput);
{
currentKeyName = HeapAlloc(GetProcessHeap(), 0, (strlenW(stdInput) + 1) * sizeof(WCHAR));
CHECK_ENOUGH_MEMORY(currentKeyName);
strcpyW(currentKeyName, stdInput);
}
else
currentKeyHandle = NULL;