[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:
Whindmar Saksit 2024-05-12 00:07:54 +02:00 committed by GitHub
parent a3d9d0e592
commit 5db69da46b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)
{