diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-01 13:55:30 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-01 13:55:30 +0200 |
commit | 9a5055af82bdd281e334513e5318c636d63f53ee (patch) | |
tree | 2d6cd173497003706022fc6eecd609247e6803e0 /c/common.c | |
parent | 7b7fcdfef7487770d3089bafaedf467e30ed3afe (diff) | |
download | EpisodeBrowser-9a5055af82bdd281e334513e5318c636d63f53ee.tar.gz |
Free libraries.
Diffstat (limited to 'c/common.c')
-rw-r--r-- | c/common.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -15,8 +15,10 @@ int Dpi(int i) extern HWND HWnd; IDPI = 96; hModule = LoadLibrary(TEXT("User32.dll")); - if (hModule && (GetDpiForWindow = GetProcAddress(hModule, "GetDpiForWindow"))) + if (hModule && (GetDpiForWindow = GetProcAddress(hModule, "GetDpiForWindow"))) { IDPI = GetDpiForWindow(HWnd); + FreeLibrary(hModule); + } } return MulDiv(i, IDPI, 96); |