diff options
author | Neil <nyamatongwe@gmail.com> | 2025-03-20 16:46:11 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-03-20 16:46:11 +1100 |
commit | 2f542786fd95e7bbce6c689934cb4988aa3fa1df (patch) | |
tree | d2d41c023eae2a6d3b13cf1450e9ba59e55920c5 /win32/WinTypes.h | |
parent | cb342d444c6c13671a5c1832d1723c073eca0a37 (diff) | |
download | scintilla-mirror-2f542786fd95e7bbce6c689934cb4988aa3fa1df.tar.gz |
Move SurfaceGDI, SurfaceD2D, ListBox, and associated code out of PlatWin.cxx to
new files SurfaceGDI.cxx, SurfaceD2D.cxx, and ListBox.cxx + associated headers.
Diffstat (limited to 'win32/WinTypes.h')
-rw-r--r-- | win32/WinTypes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/win32/WinTypes.h b/win32/WinTypes.h index c0d6c558d..f2bbfd5f9 100644 --- a/win32/WinTypes.h +++ b/win32/WinTypes.h @@ -52,6 +52,13 @@ inline T DLLFunction(HMODULE hModule, LPCSTR lpProcName) noexcept { return fp; } +inline void ReleaseLibrary(HMODULE &hLib) noexcept { + if (hLib) { + FreeLibrary(hLib); + hLib = {}; + } +} + } #endif |