File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2169,7 +2169,7 @@ void DeleteRegistryKey(char *string)
21692169 MessageBox (GetFocus (), string , "Could not open key" , MB_OK );
21702170 else {
21712171 result = RegDeleteKey (hKey , subkeyname );
2172- if (result != ERROR_SUCCESS )
2172+ if (result != ERROR_SUCCESS && result != ERROR_FILE_NOT_FOUND )
21732173 MessageBox (GetFocus (), string , "Could not delete key" , MB_OK );
21742174 RegCloseKey (hKey );
21752175 }
@@ -2211,7 +2211,7 @@ void DeleteRegistryValue(char *string)
22112211 MessageBox (GetFocus (), string , "Could not open key" , MB_OK );
22122212 else {
22132213 result = RegDeleteValue (hKey , valuename );
2214- if (result != ERROR_SUCCESS )
2214+ if (result != ERROR_SUCCESS && result != ERROR_FILE_NOT_FOUND )
22152215 MessageBox (GetFocus (), string , "Could not delete value" , MB_OK );
22162216 RegCloseKey (hKey );
22172217 }
You can’t perform that action at this time.
0 commit comments