Commit 55a9864c authored by Thomas Heller's avatar Thomas Heller

Don't complain that non-existant registry entries cannot be deleted.

parent c849e63e
......@@ -2169,7 +2169,7 @@ void DeleteRegistryKey(char *string)
MessageBox(GetFocus(), string, "Could not open key", MB_OK);
else {
result = RegDeleteKey(hKey, subkeyname);
if (result != ERROR_SUCCESS)
if (result != ERROR_SUCCESS && result != ERROR_FILE_NOT_FOUND)
MessageBox(GetFocus(), string, "Could not delete key", MB_OK);
RegCloseKey(hKey);
}
......@@ -2211,7 +2211,7 @@ void DeleteRegistryValue(char *string)
MessageBox(GetFocus(), string, "Could not open key", MB_OK);
else {
result = RegDeleteValue(hKey, valuename);
if (result != ERROR_SUCCESS)
if (result != ERROR_SUCCESS && result != ERROR_FILE_NOT_FOUND)
MessageBox(GetFocus(), string, "Could not delete value", MB_OK);
RegCloseKey(hKey);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment