Commit f2b6313336dce808a34a656d6c0910adc1679744

Authored by Perry Werneck
2 parents e9bac34b 8a7792eb

Merge branch 'develop' into network_module

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