mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[RAPPS] DelRegEmpty instruction should be best-effort, don't propagate any errors (#6860)
DelRegEmpty exists to clean up "company" registry parent keys. If another application is writing to the key at the same time as we are gently trying to remove it, our uninstaller should ignore any errors.
This commit is contained in:
@@ -752,7 +752,7 @@ UninstallThread(LPVOID Parameter)
|
||||
if (op == UNOP_REGKEY)
|
||||
err = key.RecurseDeleteKey(tmp);
|
||||
else if (RegKeyHasValues(hKey, str, wowsam) == S_FALSE)
|
||||
err = key.DeleteSubKey(tmp);
|
||||
key.DeleteSubKey(tmp); // DelRegEmpty ignores errors
|
||||
}
|
||||
switch(err)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user