diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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<<output;
+ f.close();
+ MessageBoxA(0, output.c_str(), "", MB_OK); */
}
\ No newline at end of file |