Funkcijo RegDeleteKeyExW() sem nadomestil z RegDeleteKey(), ker prva še ni podprta na Windows XP.

This commit is contained in:
Simon Rozman 2013-08-22 17:25:59 +00:00
parent 3a55262012
commit 409098e516

View File

@ -407,7 +407,7 @@ LONG COpRegKeyDelete::DeleteKeyRecursively(HKEY hKeyRoot, LPCWSTR pszKeyName, RE
::RegCloseKey(hKey);
// Finally try to delete the key.
lResult = ::RegDeleteKeyExW(hKeyRoot, pszKeyName, samAdditional, 0);
lResult = ::RegDeleteKey(hKeyRoot, pszKeyName);
} else if (lResult == ERROR_FILE_NOT_FOUND) {
// The key doesn't exist. Not really an error in this case.
lResult = ERROR_SUCCESS;