From 45ff7b504d79072bfbd24cf12f5818ed356f94bc Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 18 Aug 2010 08:26:47 +0300 Subject: modified: gpg_wrapper.cpp modified: init.cpp modified: main.cpp modified: messages.cpp modified: new_gpg.rc modified: new_gpg.sln modified: new_gpg.vcproj modified: options.cpp modified: resource.h modified: utilities.cpp --- gpg_wrapper.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gpg_wrapper.cpp') diff --git a/gpg_wrapper.cpp b/gpg_wrapper.cpp index 566031f..8ff6631 100644 --- a/gpg_wrapper.cpp +++ b/gpg_wrapper.cpp @@ -20,6 +20,8 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD aexitcode) { + extern bool bDebugLog; + extern fstream debuglog; BOOL success; STARTUPINFO sinfo = {0}; SECURITY_ATTRIBUTES sattrs = {0}; @@ -80,6 +82,12 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD mir_free(home_dir); } + if(bDebugLog) + { + char* tmp = mir_utf8encodeW(commandline.c_str()); + debuglog<<"in: "<c_str()<<"\n"; + } + WaitForSingleObject(pri.hProcess,INFINITE); CloseHandle(pri.hThread); -- cgit v1.2.3