From 991387a113ae1bbc7453ce57faf9c4bec2142940 Mon Sep 17 00:00:00 2001 From: Jan Kevin Dick Date: Mon, 18 Nov 2019 11:48:45 +0100 Subject: [PATCH] Passing _readOnly and _extraSam inside delete Key to the RegistryKey Constructor --- Util/src/WinRegistryKey.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/src/WinRegistryKey.cpp b/Util/src/WinRegistryKey.cpp index 048f44c75..b5e17244d 100644 --- a/Util/src/WinRegistryKey.cpp +++ b/Util/src/WinRegistryKey.cpp @@ -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(); }