From 8a7792ebe8ca052767c502efe755148e339fcae4 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 31 Aug 2020 17:53:54 -0300 Subject: [PATCH] Fixing windows package. --- src/core/windows/util.c | 7 +++++++ src/include/windows/lib3270/os.h | 7 +------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/core/windows/util.c b/src/core/windows/util.c index 72f1e15..b7fdf96 100644 --- a/src/core/windows/util.c +++ b/src/core/windows/util.c @@ -370,3 +370,10 @@ char * lib3270_build_filename(const char *str, ...) return filename; } +LIB3270_EXPORT void lib3270_autoptr_cleanup_HKEY(HKEY *hKey) { + if(*hKey) { + RegCloseKey(*hKey); + *hKey = 0; + } +} + diff --git a/src/include/windows/lib3270/os.h b/src/include/windows/lib3270/os.h index 9b6ede6..1624d6c 100644 --- a/src/include/windows/lib3270/os.h +++ b/src/include/windows/lib3270/os.h @@ -41,11 +41,6 @@ #include #include - inline void lib3270_autoptr_cleanup_HKEY(HKEY *hKey) { - if(*hKey) { - RegCloseKey(*hKey); - *hKey = 0; - } - } + LIB3270_EXPORT void lib3270_autoptr_cleanup_HKEY(HKEY *hKey); #endif // LIB3270_OS_H_INCLUDED -- libgit2 0.21.2