From def45d4b5a88f6633c458887f2c435d086dc607f Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 26 Aug 2006 09:57:38 +0000 Subject: [PATCH] fixed one waring that thomas got with gcc 4.x svn path=/trunk/; revision=23716 --- reactos/base/applications/network/net/process.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reactos/base/applications/network/net/process.c b/reactos/base/applications/network/net/process.c index 16c3a537bdf..250533cf369 100644 --- a/reactos/base/applications/network/net/process.c +++ b/reactos/base/applications/network/net/process.c @@ -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; }