reg: Exit with an error message if RegQueryInfoKeyW fails.

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-04-06 22:56:13 +10:00 committed by Alexandre Julliard
parent b76ee0c7f8
commit dad56c7dc6
49 changed files with 294 additions and 1 deletions

View File

@ -11890,6 +11890,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "ال&سجل"

View File

@ -11506,6 +11506,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Регистър"

View File

@ -11769,6 +11769,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registre"

View File

@ -11577,6 +11577,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registr"

View File

@ -11843,6 +11843,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Register"

View File

@ -11747,6 +11747,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registrierung"

View File

@ -11292,6 +11292,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11639,6 +11639,14 @@ msgstr ""
"reg: Unable to delete all registry values in '%1'. An unexpected error "
"occurred.\n"
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registry"

View File

@ -11639,6 +11639,14 @@ msgstr ""
"reg: Unable to delete all registry values in '%1'. An unexpected error "
"occurred.\n"
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registry"

View File

@ -11196,6 +11196,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registrejo"

View File

@ -11922,6 +11922,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registro"

View File

@ -11286,6 +11286,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11616,6 +11616,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Rekisteri"

View File

@ -11778,6 +11778,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registre"

View File

@ -11667,6 +11667,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&רישום המערכת"

View File

@ -11093,6 +11093,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11400,6 +11400,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registar"

View File

@ -11837,6 +11837,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Fájl"

View File

@ -11923,6 +11923,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registro"

View File

@ -11623,6 +11623,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "レジストリ(&R)"

View File

@ -11912,6 +11912,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "레지스트리(&R)"

View File

@ -11645,6 +11645,17 @@ msgid ""
msgstr ""
"reg: Nepavyko pašalinti visų „%1“ registro reikšmių. Įvyko netikėta klaida.\n"
#: reg.rc:54
#, fuzzy
#| msgid ""
#| "reg: Unable to delete all registry values in '%1'. An unexpected error "
#| "occurred.\n"
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
"reg: Nepavyko pašalinti visų „%1“ registro reikšmių. Įvyko netikėta klaida.\n"
#: regedit.rc:34
msgid "&Registry"
msgstr "R&egistras"

View File

@ -11093,6 +11093,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11748,6 +11748,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Register"

View File

@ -11889,6 +11889,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registerbestand"

View File

@ -11093,6 +11093,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11093,6 +11093,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11725,6 +11725,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Rejestr"

View File

@ -11732,6 +11732,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registro"

View File

@ -11714,6 +11714,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registo"

View File

@ -11171,6 +11171,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11933,6 +11933,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registru"

View File

@ -11642,6 +11642,18 @@ msgstr ""
"reg: не удалось удалить все значения в «%1». Произошла непредвиденная "
"ошибка.\n"
#: reg.rc:54
#, fuzzy
#| msgid ""
#| "reg: Unable to delete all registry values in '%1'. An unexpected error "
#| "occurred.\n"
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
"reg: не удалось удалить все значения в «%1». Произошла непредвиденная "
"ошибка.\n"
#: regedit.rc:34
msgid "&Registry"
msgstr "&Реестр"

View File

@ -11365,6 +11365,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Registry"

View File

@ -11866,6 +11866,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Register"

View File

@ -11758,6 +11758,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11897,6 +11897,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11538,6 +11538,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Register"

View File

@ -11093,6 +11093,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11324,6 +11324,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11694,6 +11694,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Kayıt"

View File

@ -11756,6 +11756,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "&Реєстр"

View File

@ -11232,6 +11232,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11029,6 +11029,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr ""

View File

@ -11197,6 +11197,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "注册表(&R)"

View File

@ -11797,6 +11797,12 @@ msgid ""
"occurred.\n"
msgstr ""
#: reg.rc:54
msgid ""
"reg: Unable to complete the specified operation. An unexpected error "
"occurred.\n"
msgstr ""
#: regedit.rc:34
msgid "&Registry"
msgstr "註冊表(&R)"

View File

@ -497,8 +497,8 @@ static int reg_delete(WCHAR *key_name, WCHAR *value_name, BOOL value_empty,
&maxValue, NULL, NULL, NULL);
if (rc != ERROR_SUCCESS)
{
/* FIXME: failure */
RegCloseKey(subkey);
output_message(STRING_GENERAL_FAILURE);
return 1;
}
maxValue++;

View File

@ -45,3 +45,4 @@
#define STRING_DELETE_SUBKEY 122
#define STRING_INVALID_STRING 123
#define STRING_VALUEALL_FAILED 124
#define STRING_GENERAL_FAILURE 125

View File

@ -50,4 +50,5 @@ STRINGTABLE
STRING_DELETE_SUBKEY, "Are you sure you want to delete the registry key '%1'?"
STRING_INVALID_STRING, "reg: The option [/d] must be followed by a valid string\n"
STRING_VALUEALL_FAILED, "reg: Unable to delete all registry values in '%1'. An unexpected error occurred.\n"
STRING_GENERAL_FAILURE, "reg: Unable to complete the specified operation. An unexpected error occurred.\n"
}