Skip to content

Commit

Permalink
Close the HKEY in GetIconFont
Browse files Browse the repository at this point in the history
  • Loading branch information
aubymori committed Oct 8, 2024
1 parent 3eca7c4 commit 314f61b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mods/classic-list-group-fix.wh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,12 @@ bool GetIconFont(LOGFONTW *lplf)
return false;

DWORD cbData = sizeof(LOGFONTW);
return ERROR_SUCCESS == RegQueryValueExW(
bool bSuccess ERROR_SUCCESS == RegQueryValueExW(
hKey, L"IconFont", NULL, NULL,
(BYTE *)lplf, &cbData
);
RegCloseKey(hKey);
return bSuccess;
}

INT_PTR (__thiscall *CListGroup_GetGroupRect_orig)(void *, LPRECT);
Expand Down

0 comments on commit 314f61b

Please sign in to comment.