summaryrefslogtreecommitdiff
path: root/gpg_wrapper.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-09-01 02:28:02 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-09-01 02:28:02 +0300
commitb53bf2d6db46cd9b7b1b681b0d2bee448f79a400 (patch)
tree1f227c26e9df618f9df116e8f024ffc2d0d12547 /gpg_wrapper.cpp
parenta739fa0c551a79c27f715fc081a6f398fbe9519a (diff)
threads critical bug fix
Diffstat (limited to 'gpg_wrapper.cpp')
-rw-r--r--gpg_wrapper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gpg_wrapper.cpp b/gpg_wrapper.cpp
index de34f2c..df3e1fa 100644
--- a/gpg_wrapper.cpp
+++ b/gpg_wrapper.cpp
@@ -102,6 +102,7 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD
CloseHandle(writestdin);
CloseHandle(newstdout);
CloseHandle(readstdout);
+ ReleaseMutex(gpg_mutex);
*result = pxCreateProcessFailed;
return pxCreateProcessFailed;
}
@@ -123,7 +124,7 @@ pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD
inputpos+=transfered;
Sleep(200);
}
- CloseHandle(gpg_mutex);
+ ReleaseMutex(gpg_mutex);
storeOutput(readstdout,aoutput);