]> granicus.if.org Git - python/commitdiff
Don't complain that non-existant registry entries cannot be deleted.
authorThomas Heller <theller@ctypes.org>
Wed, 14 Jul 2004 14:53:50 +0000 (14:53 +0000)
committerThomas Heller <theller@ctypes.org>
Wed, 14 Jul 2004 14:53:50 +0000 (14:53 +0000)
PC/bdist_wininst/install.c

index d7bfc4fe0ba79059ff2a1e6fee509b2bcb9152f0..afbef56c9be118c56e7a4e2e4517d9f4570c4188 100644 (file)
@@ -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);
        }