summaryrefslogtreecommitdiff
path: root/gpg_wrapper.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-31 01:31:47 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-31 01:31:47 +0300
commit68706e0c527bc50ada54e3b93a88c5ee3e33b8e2 (patch)
treebb28935bd5a9b61a122bb72c6eb866619b0fc3c4 /gpg_wrapper.cpp
parentbef8e360e5e40ee4e8648a5c56b2fae3fefb1c0a (diff)
support password for every KeyID (but only one password in memory at same time)
Diffstat (limited to 'gpg_wrapper.cpp')
-rw-r--r--gpg_wrapper.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gpg_wrapper.cpp b/gpg_wrapper.cpp
index fa8c8f7..e1910af 100644
--- a/gpg_wrapper.cpp
+++ b/gpg_wrapper.cpp
@@ -88,13 +88,16 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD
debuglog<<"in: "<<commandline<<"\n";
- TCHAR chNewEnv[128];
+/* TCHAR chNewEnv[128];
LPTSTR lpszCurrentVariable;
lpszCurrentVariable = (LPTSTR)chNewEnv;
- _tcscpy(lpszCurrentVariable, _T("LANGUAGE=0"));
+ _tcscpy(lpszCurrentVariable, _T("LANGUAGE=0")); */
+
- success = CreateProcess(NULL, (TCHAR*)commandline.c_str(), NULL, NULL, TRUE, CREATE_NEW_CONSOLE, (LPVOID)chNewEnv, NULL, &sinfo, &pri);
+ setlocale( LC_ALL, "C" );
+// success = CreateProcess(NULL, (TCHAR*)commandline.c_str(), NULL, NULL, TRUE, CREATE_NEW_CONSOLE, (LPVOID)chNewEnv, NULL, &sinfo, &pri);
+ success = CreateProcess(NULL, (TCHAR*)commandline.c_str(), NULL, NULL, TRUE, CREATE_NEW_CONSOLE, NULL, NULL, &sinfo, &pri);
if (!success)
{