commit 168e8a5333c52175a7e94016b3ef994c7b253aa9
parent 9b838a67d2e07ea72c198e291f7eb654fef541fd
Author: Luciano Iam <oss@lucianoiam.com>
Date: Sat, 21 Aug 2021 09:34:03 +0200
Add missing call to FreeLibrary()
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp
@@ -226,7 +226,10 @@ double puglGetDesktopScaleFactor(const PuglView* const view)
DWORD scaleFactor = 0;
if (GetScaleFactorForMonitor(hMon, &scaleFactor) == 0 && scaleFactor != 0)
+ {
+ FreeLibrary(Shcore);
return static_cast<double>(scaleFactor) / 100.0;
+ }
}
FreeLibrary(Shcore);