From 6036b25b4aa250fb85679752bb9309a4d95f97a3 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 4 Oct 2019 13:50:01 -0300 Subject: [PATCH] Fixing error on windows version of get_datadir Adding samples in the zip file. --- Makefile.in | 3 ++- src/module/windows/tools.cc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 68c5cee..db26c18 100644 --- a/Makefile.in +++ b/Makefile.in @@ -229,7 +229,8 @@ python-@PYTHON_VERSION@-tn3270-@PACKAGE_VERSION@.@host_cpu@.zip: \ -9 \ -j \ $@ \ - $(BINRLS)/$(LIBNAME)@DLLEXT@ + $(BINRLS)/$(LIBNAME)@DLLEXT@ \ + testprograms/*.py #---[ Debug Targets ]-------------------------------------------------------------------- diff --git a/src/module/windows/tools.cc b/src/module/windows/tools.cc index 3f290d9..9cbb124 100644 --- a/src/module/windows/tools.cc +++ b/src/module/windows/tools.cc @@ -51,6 +51,7 @@ "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\pw3270" }; + memset(datadir,0,sizeof(datadir)); for(size_t ix = 0; !*datadir && ix < (sizeof(keys)/sizeof(keys[0])); ix++) { rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE,keys[ix],0,KEY_QUERY_VALUE,&hKey); -- libgit2 0.21.2