Skip to content

Commit 22c62f7

Browse files
committed
Addendum #2 to 6e19a73
1 parent f7057c8 commit 22c62f7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Shared/sdk/SharedUtil.Misc.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,6 @@ static SString ReadRegistryStringValue(HKEY hkRoot, const char* szSubKey, const
653653
#endif
654654
accessMasks[maskCount++] = KEY_READ;
655655

656-
using UniqueHKey = std::unique_ptr<std::remove_pointer_t<HKEY>, decltype(&RegCloseKey)>;
657-
658656
for (size_t maskIndex = 0; maskIndex < maskCount && !success; ++maskIndex)
659657
{
660658
HKEY hkTemp = nullptr;
@@ -665,7 +663,7 @@ static SString ReadRegistryStringValue(HKEY hkRoot, const char* szSubKey, const
665663
continue;
666664
}
667665

668-
UniqueHKey keyGuard(hkTemp, &RegCloseKey);
666+
UniqueHKey keyGuard(hkTemp);
669667

670668
if (PopulateValueFromKey(hkTemp, pValueName, status, strOutResult))
671669
{

0 commit comments

Comments
 (0)