diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-11 02:52:42 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-11 02:52:42 +0300 |
commit | ff34af8edad99fae99b59def8a3d5cce92085a9c (patch) | |
tree | 083fede580c7df94a0a588f5b325bf693bc427a6 /main.cpp | |
parent | 1de40ac790d3218cc10d37f95f9f1a8c573dbe77 (diff) |
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
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 |