From ff34af8edad99fae99b59def8a3d5cce92085a9c Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 11 Aug 2010 02:52:42 +0300 Subject: modified: commonheaders.h modified: gpg_wrapper.cpp modified: gpg_wrapper.h modified: init.cpp modified: main.cpp modified: messages.cpp modified: options.cpp modified: utilities.cpp modified: utilities.h --- main.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index b3f01d5..b93f9f5 100644 --- a/main.cpp +++ b/main.cpp @@ -24,6 +24,14 @@ void test() DWORD exitcode; string output; TCHAR *bin_path = UniGetContactSettingUtf(NULL, szModuleName, "szGpgBinPath", _T("")); + { + if(_waccess(bin_path, 0) == -1) + if(errno == ENOENT) + { + mir_free(bin_path); + return; + } + } TCHAR *home_dir = UniGetContactSettingUtf(NULL, szModuleName, "szHomePath", _T("")); TCHAR bin[512]; _tcscpy(bin, bin_path); @@ -35,5 +43,8 @@ void test() pxResult pxresult=pxExecute(bin,"",&output,&exitcode); mir_free(bin_path); mir_free(home_dir); - MessageBoxA(0, output.c_str(), "", MB_OK); +/* fstream f("c:\\str.txt", std::ios::out); + f<