From 416af1b2ec222968a5b7a985eeb629252dfe2ec9 Mon Sep 17 00:00:00 2001 From: Luciano Iam Date: Sat, 21 Aug 2021 09:34:30 +0200 Subject: [PATCH] Add missing call to FreeLibrary() --- dgl/src/pugl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp index a15a34d0..d22aaea7 100644 --- 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(scaleFactor) / 100.0; + } } FreeLibrary(Shcore);