Commit 6036b25b4aa250fb85679752bb9309a4d95f97a3
1 parent
3db268af
Exists in
master
Fixing error on windows version of get_datadir
Adding samples in the zip file.
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
Makefile.in
| ... | ... | @@ -229,7 +229,8 @@ python-@PYTHON_VERSION@-tn3270-@PACKAGE_VERSION@.@host_cpu@.zip: \ |
| 229 | 229 | -9 \ |
| 230 | 230 | -j \ |
| 231 | 231 | $@ \ |
| 232 | - $(BINRLS)/$(LIBNAME)@DLLEXT@ | |
| 232 | + $(BINRLS)/$(LIBNAME)@DLLEXT@ \ | |
| 233 | + testprograms/*.py | |
| 233 | 234 | |
| 234 | 235 | #---[ Debug Targets ]-------------------------------------------------------------------- |
| 235 | 236 | ... | ... |
src/module/windows/tools.cc
| ... | ... | @@ -51,6 +51,7 @@ |
| 51 | 51 | "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\pw3270" |
| 52 | 52 | }; |
| 53 | 53 | |
| 54 | + memset(datadir,0,sizeof(datadir)); | |
| 54 | 55 | for(size_t ix = 0; !*datadir && ix < (sizeof(keys)/sizeof(keys[0])); ix++) { |
| 55 | 56 | |
| 56 | 57 | rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE,keys[ix],0,KEY_QUERY_VALUE,&hKey); | ... | ... |