From 1de40ac790d3218cc10d37f95f9f1a8c573dbe77 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Tue, 10 Aug 2010 23:51:58 +0300 Subject: modified: main.cpp modified: options.cpp modified: utilities.cpp modified: utilities.h --- main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'main.cpp') 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 -- cgit v1.2.3