Author: greatlrd
Date: Sat Aug 26 13:57:38 2006
New Revision: 23716
URL:
http://svn.reactos.org/svn/reactos?rev=23716&view=rev
Log:
fixed one waring that thomas got with gcc 4.x
Modified:
trunk/reactos/base/applications/network/net/process.c
Modified: trunk/reactos/base/applications/network/net/process.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/network/…
==============================================================================
--- trunk/reactos/base/applications/network/net/process.c (original)
+++ trunk/reactos/base/applications/network/net/process.c Sat Aug 26 13:57:38 2006
@@ -117,8 +117,10 @@
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 @@
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;
}