mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
do right typecast for ReadFile so it compiles on gcc 4.x
svn path=/trunk/; revision=23717
This commit is contained in:
parent
def45d4b5a
commit
a7216d7b12
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ LONG ReadPipeSize(HANDLE hStdoutWr, HANDLE hStdoutRd)
|
|||
for (;;)
|
||||
{
|
||||
long dwRead;
|
||||
if( !ReadFile( hStdoutRd, chBuf, 1, &dwRead, NULL) || dwRead == 0)
|
||||
if( !ReadFile( hStdoutRd, chBuf, 1, (LPDWORD)&dwRead, NULL) || dwRead == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
@ -129,7 +129,7 @@ LONG ReadPipe(HANDLE hStdoutWr, HANDLE hStdoutRd, CHAR *srvlst, LONG size)
|
|||
for (;;)
|
||||
{
|
||||
LONG dwRead;
|
||||
if( !ReadFile( hStdoutRd, chBuf, 1, (LONG *)&dwRead, NULL) || dwRead == 0)
|
||||
if( !ReadFile( hStdoutRd, chBuf, 1, (LPDWORD)&dwRead, NULL) || dwRead == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue