/[winpt]/trunk/Src/wptGPGUtil.cpp
ViewVC logotype

Diff of /trunk/Src/wptGPGUtil.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 72 by werner, Mon Oct 31 21:14:11 2005 UTC revision 73 by twoaday, Tue Nov 8 07:15:13 2005 UTC
# Line 24  Line 24 
24  #include <windows.h>  #include <windows.h>
25  #include <sys/stat.h>  #include <sys/stat.h>
26    
27    #include "wptErrors.h"
28  #include "gpgme.h"  #include "gpgme.h"
29    
30    
# Line 285  create_process (const char *cmd, HANDLE Line 286  create_process (const char *cmd, HANDLE
286          si.hStdInput = in;          si.hStdInput = in;
287      si.wShowWindow = SW_HIDE;      si.wShowWindow = SW_HIDE;
288      if (!CreateProcess (NULL, (char*)cmd, NULL, NULL, TRUE, 0,      if (!CreateProcess (NULL, (char*)cmd, NULL, NULL, TRUE, 0,
289                          NULL, NULL, &si, &pi))                          NULL, NULL, &si, &pi)) {
290            log_debug ("create_process: CreateProcess() failed ec=%d\r\n",
291                       (int)GetLastError ());
292          return -1;          return -1;
293        }
294      WaitForSingleObject (pi.hProcess, INFINITE);      WaitForSingleObject (pi.hProcess, INFINITE);
295      CloseHandle (pi.hProcess);      CloseHandle (pi.hProcess);
296      return 0;      return 0;

Legend:
Removed from v.72  
changed lines
  Added in v.73

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26