mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
fixed one waring that thomas got with gcc 4.x
svn path=/trunk/; revision=23716
This commit is contained in:
parent
916f69a7cb
commit
def45d4b5a
1 changed files with 6 additions and 4 deletions
|
@ -117,8 +117,10 @@ LONG ReadPipeSize(HANDLE hStdoutWr, HANDLE hStdoutRd)
|
|||
LONG ReadPipe(HANDLE hStdoutWr, HANDLE hStdoutRd, CHAR *srvlst, LONG size)
|
||||
{
|
||||
CHAR chBuf[2];
|
||||
long pos=0;
|
||||
|
||||
LONG pos;
|
||||
|
||||
pos=0;
|
||||
|
||||
if (!CloseHandle(hStdoutWr))
|
||||
{
|
||||
return 0; /* fail */
|
||||
|
@ -126,8 +128,8 @@ LONG ReadPipe(HANDLE hStdoutWr, HANDLE hStdoutRd, CHAR *srvlst, LONG size)
|
|||
|
||||
for (;;)
|
||||
{
|
||||
long dwRead;
|
||||
if( !ReadFile( hStdoutRd, chBuf, 1, &dwRead, NULL) || dwRead == 0)
|
||||
LONG dwRead;
|
||||
if( !ReadFile( hStdoutRd, chBuf, 1, (LONG *)&dwRead, NULL) || dwRead == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue