diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/CryptoPP/GPGw/pipeexec.c | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/GPGw/pipeexec.c')
-rw-r--r-- | plugins/CryptoPP/GPGw/pipeexec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CryptoPP/GPGw/pipeexec.c b/plugins/CryptoPP/GPGw/pipeexec.c index 871dfbe3b4..ea54f85d1a 100644 --- a/plugins/CryptoPP/GPGw/pipeexec.c +++ b/plugins/CryptoPP/GPGw/pipeexec.c @@ -32,7 +32,7 @@ void storeOutput(HANDLE ahandle, char **aoutput) success=ReadFile(ahandle, readbuffer, sizeof(readbuffer), &transfered, NULL);
- if((success)&&(transfered!=0))
+ if ((success)&&(transfered!=0))
appendText(aoutput, readbuffer, transfered);
}
while(available>0);
@@ -66,14 +66,14 @@ pxResult pxExecute(char *acommandline, char *ainput, char **aoutput, LPDWORD aex else securityattributes.lpSecurityDescriptor=NULL;
success=CreatePipe(&newstdin, &writestdin ,&securityattributes ,0);
- if(! success)
+ if (! success)
{
LogMessage("--- ", "create pipe failed", "\n");
return pxCreatePipeFailed;
}
success=CreatePipe(&readstdout, &newstdout, &securityattributes, 0);
- if(! success)
+ if (! success)
{
LogMessage("--- ", "create pipe failed", "\n");
CloseHandle(newstdin);
@@ -90,7 +90,7 @@ pxResult pxExecute(char *acommandline, char *ainput, char **aoutput, LPDWORD aex success=CreateProcess(NULL, acommandline, NULL, NULL, TRUE, CREATE_NEW_CONSOLE, NULL, NULL, &startupinfo, &processinformation);
- if(! success)
+ if (! success)
{
LogMessage("--- ", "create process failed", "\n");
CloseHandle(newstdin);
@@ -105,11 +105,11 @@ pxResult pxExecute(char *acommandline, char *ainput, char **aoutput, LPDWORD aex while(TRUE)
{
success=GetExitCodeProcess(processinformation.hProcess, aexitcode);
- if((success)&&(*aexitcode!=STILL_ACTIVE)) break;
+ if ((success)&&(*aexitcode!=STILL_ACTIVE)) break;
storeOutput(readstdout, aoutput);
- if(*inputpos!='\0') size=1;
+ if (*inputpos!='\0') size=1;
else size=0;
success=WriteFile(writestdin, inputpos, size, &transfered, NULL);
|