summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 6ad5032..b3f01d5 100644
--- a/main.cpp
+++ b/main.cpp
@@ -24,9 +24,16 @@ void test()
DWORD exitcode;
string output;
TCHAR *bin_path = UniGetContactSettingUtf(NULL, szModuleName, "szGpgBinPath", _T(""));
+ TCHAR *home_dir = UniGetContactSettingUtf(NULL, szModuleName, "szHomePath", _T(""));
TCHAR bin[512];
_tcscpy(bin, bin_path);
+ _tcscat(bin, _T(" --homedir "));
+ _tcscat(bin, _T("\""));
+ _tcscat(bin, home_dir);
+ _tcscat(bin, _T("\""));
_tcscat(bin, _T(" --help"));
pxResult pxresult=pxExecute(bin,"",&output,&exitcode);
+ mir_free(bin_path);
+ mir_free(home_dir);
MessageBoxA(0, output.c_str(), "", MB_OK);
} \ No newline at end of file