From 22fb1e947d1d1842b5a819782756a611c4695d50 Mon Sep 17 00:00:00 2001 From: Stanislav Motylkov Date: Wed, 26 Aug 2020 23:22:57 +0300 Subject: [PATCH] [SYSDM] Add missing RegCloseKey function calls Addendum to 06198c5. --- dll/cpl/sysdm/general.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dll/cpl/sysdm/general.c b/dll/cpl/sysdm/general.c index 870ec299c1b..85bc450cc2f 100644 --- a/dll/cpl/sysdm/general.c +++ b/dll/cpl/sysdm/general.c @@ -468,6 +468,7 @@ static VOID GetSystemInformation(HWND hwnd) { SetRegTextData(hwnd, hKey, _T("Identifier"), CurMachineLine); CurMachineLine++; + RegCloseKey(hKey); } } /* @@ -489,6 +490,7 @@ static VOID GetSystemInformation(HWND hwnd) SetProcSpeed(hwnd, hKey, _T("~MHz"), CurMachineLine); CurMachineLine++; + RegCloseKey(hKey); } /* Get total physical RAM */