[PATCH 5/8] regedit: Update string resources associated with key deletion

Hugh McMaster hugh.mcmaster at outlook.com
Wed Jul 12 06:09:23 CDT 2017


Signed-off-by: Hugh McMaster <hugh.mcmaster at outlook.com>
---
 programs/regedit/edit.c     | 3 ++-
 programs/regedit/regedit.rc | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/programs/regedit/edit.c b/programs/regedit/edit.c
index 2c47bdc03b..038a37aff8 100644
--- a/programs/regedit/edit.c
+++ b/programs/regedit/edit.c
@@ -403,7 +403,8 @@ BOOL DeleteKey(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath)
 	return FALSE;
     }
     
-    if (messagebox(hwnd, MB_YESNO | MB_ICONEXCLAMATION, IDS_DELETE_KEY_TITLE, IDS_DELETE_KEY_TEXT, keyPath) != IDYES)
+    if (messagebox(hwnd, MB_YESNO | MB_ICONEXCLAMATION, IDS_DELETE_KEY_TITLE,
+                   IDS_DELETE_KEY_TEXT) != IDYES)
 	goto done;
 	
     lRet = SHDeleteKeyW(hKeyRoot, keyPath);
diff --git a/programs/regedit/regedit.rc b/programs/regedit/regedit.rc
index 8635ab751a..4a51bcff2b 100644
--- a/programs/regedit/regedit.rc
+++ b/programs/regedit/regedit.rc
@@ -209,7 +209,7 @@ BEGIN
     IDS_DELETE_VALUE_TEXT   "Are you sure you want to delete the registry value '%1'?"
     IDS_DELETE_VALUE_TEXT_MULTIPLE "Are you sure you want to delete these values?"
     IDS_DELETE_KEY_TITLE    "Confirm Key Delete"
-    IDS_DELETE_KEY_TEXT     "Are you sure you want to delete the registry key '%1' and all of its subkeys?"
+    IDS_DELETE_KEY_TEXT     "Are you sure you want to delete this registry key and all of its subkeys?"
     IDS_NEWKEY              "New Key #%d"
     IDS_NEWVALUE            "New Value #%d"
     IDS_NOTFOUND            "Search complete. The string '%1' was not found."
@@ -404,7 +404,7 @@ STRINGTABLE
 \Usage examples:\n\
 \  regedit \"import.reg\"\n\
 \  regedit /E \"export.reg\" \"HKEY_CURRENT_USER\\Console\"\n\
-\  regedit /D \"HKEY_LOCAL_MACHINE\\Error\\Path\"\n"
+\  regedit /D \"HKEY_LOCAL_MACHINE\\Key\\Path\"\n"
     STRING_INVALID_SWITCH, "regedit: Invalid or unrecognized switch [%1]\n"
     STRING_HELP, "Type \"regedit /?\" for help.\n"
     STRING_NO_FILENAME, "regedit: No filename was specified.\n"
-- 
2.11.0




More information about the wine-patches mailing list