spelling: dependents

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2021-05-26 05:01:13 -04:00
parent 754334ccac
commit 544efe1f73

View file

@ -90,9 +90,9 @@ extern "C" HRESULT RemoveDependent(LPWSTR sczDependent, BOOL* pbRestartRequired)
ExitOnFailure(hr, "Unable to open dependents key."); ExitOnFailure(hr, "Unable to open dependents key.");
// Enumerate over all the dependent keys // Enumerate over all the dependent keys
for (DWORD dwDepdentsKeyIndex = 0;; ++dwDepdentsKeyIndex) for (DWORD dwDependentsKeyIndex = 0;; ++dwDependentsKeyIndex)
{ {
hr = RegKeyEnum(hkDependentsKey, dwDepdentsKeyIndex, &sczDependentsKey); hr = RegKeyEnum(hkDependentsKey, dwDependentsKeyIndex, &sczDependentsKey);
if (E_NOMOREITEMS == hr) if (E_NOMOREITEMS == hr)
{ {
@ -110,7 +110,7 @@ extern "C" HRESULT RemoveDependent(LPWSTR sczDependent, BOOL* pbRestartRequired)
ExitOnFailure(hr, "Failed to delete dependent \"%ls\"", sczDependent); ExitOnFailure(hr, "Failed to delete dependent \"%ls\"", sczDependent);
LogStringLine(REPORT_STANDARD, " Dependent deleted"); LogStringLine(REPORT_STANDARD, " Dependent deleted");
// Reset the index since we're deleting keys while enumerating // Reset the index since we're deleting keys while enumerating
dwDepdentsKeyIndex = dwDepdentsKeyIndex > 1 ? dwDepdentsKeyIndex-- : 0; dwDependentsKeyIndex = dwDependentsKeyIndex > 1 ? dwDependentsKeyIndex-- : 0;
// Check if there are any subkeys remaining under the dependents key. If not, we // Check if there are any subkeys remaining under the dependents key. If not, we
// can uninstall the MSI. We'll recheck the key again in case the MSI fails to clean up the // can uninstall the MSI. We'll recheck the key again in case the MSI fails to clean up the