Commit 8a7792ebe8ca052767c502efe755148e339fcae4

Authored by Perry Werneck
1 parent 3be44a48

Fixing windows package.

src/core/windows/util.c
@@ -370,3 +370,10 @@ char * lib3270_build_filename(const char *str, ...) @@ -370,3 +370,10 @@ char * lib3270_build_filename(const char *str, ...)
370 return filename; 370 return filename;
371 } 371 }
372 372
  373 +LIB3270_EXPORT void lib3270_autoptr_cleanup_HKEY(HKEY *hKey) {
  374 + if(*hKey) {
  375 + RegCloseKey(*hKey);
  376 + *hKey = 0;
  377 + }
  378 +}
  379 +
src/include/windows/lib3270/os.h
@@ -41,11 +41,6 @@ @@ -41,11 +41,6 @@
41 #include <winsock2.h> 41 #include <winsock2.h>
42 #include <windows.h> 42 #include <windows.h>
43 43
44 - inline void lib3270_autoptr_cleanup_HKEY(HKEY *hKey) {  
45 - if(*hKey) {  
46 - RegCloseKey(*hKey);  
47 - *hKey = 0;  
48 - }  
49 - } 44 + LIB3270_EXPORT void lib3270_autoptr_cleanup_HKEY(HKEY *hKey);
50 45
51 #endif // LIB3270_OS_H_INCLUDED 46 #endif // LIB3270_OS_H_INCLUDED