From b53bf2d6db46cd9b7b1b681b0d2bee448f79a400 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 1 Sep 2010 02:28:02 +0300 Subject: threads critical bug fix --- gpg_wrapper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gpg_wrapper.cpp') 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); -- cgit v1.2.3