Funkcijo RegDeleteKeyExW() sem nadomestil z RegDeleteKey(), ker prva še ni podprta na Windows XP.
This commit is contained in:
parent
3a55262012
commit
409098e516
@ -407,7 +407,7 @@ LONG COpRegKeyDelete::DeleteKeyRecursively(HKEY hKeyRoot, LPCWSTR pszKeyName, RE
|
|||||||
::RegCloseKey(hKey);
|
::RegCloseKey(hKey);
|
||||||
|
|
||||||
// Finally try to delete the key.
|
// Finally try to delete the key.
|
||||||
lResult = ::RegDeleteKeyExW(hKeyRoot, pszKeyName, samAdditional, 0);
|
lResult = ::RegDeleteKey(hKeyRoot, pszKeyName);
|
||||||
} else if (lResult == ERROR_FILE_NOT_FOUND) {
|
} else if (lResult == ERROR_FILE_NOT_FOUND) {
|
||||||
// The key doesn't exist. Not really an error in this case.
|
// The key doesn't exist. Not really an error in this case.
|
||||||
lResult = ERROR_SUCCESS;
|
lResult = ERROR_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user