diff options
author | Thomas Heller <theller@ctypes.org> | 2004-07-14 14:53:50 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2004-07-14 14:53:50 (GMT) |
commit | 55a9864cb4e014a4137200a17681c4acbde90f7c (patch) | |
tree | 3f883b7c2232e0c09d11869e40745e51508cb109 /PC | |
parent | c849e63eb080274f0c9ade654a7f1ffc7ecc3cf3 (diff) | |
download | cpython-55a9864cb4e014a4137200a17681c4acbde90f7c.zip cpython-55a9864cb4e014a4137200a17681c4acbde90f7c.tar.gz cpython-55a9864cb4e014a4137200a17681c4acbde90f7c.tar.bz2 |
Don't complain that non-existant registry entries cannot be deleted.
Diffstat (limited to 'PC')
-rw-r--r-- | PC/bdist_wininst/install.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c index d7bfc4f..afbef56 100644 --- a/PC/bdist_wininst/install.c +++ b/PC/bdist_wininst/install.c @@ -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); } |