Passing _readOnly and _extraSam inside delete Key to the RegistryKey Constructor

This commit is contained in:
Jan Kevin Dick 2019-11-18 11:48:45 +01:00
parent d658cc25e7
commit 991387a113

View File

@ -352,7 +352,7 @@ void WinRegistryKey::deleteKey()
std::string subKey(_subKey);
subKey += "\\";
subKey += *it;
WinRegistryKey subRegKey(_hRootKey, subKey);
WinRegistryKey subRegKey(_hRootKey, subKey, _readOnly, _extraSam);
subRegKey.deleteKey();
}