Author: greatlrd
Date: Sat Aug 26 14:01:03 2006
New Revision: 23717
URL:
http://svn.reactos.org/svn/reactos?rev=23717&view=rev
Log:
do right typecast for ReadFile so it compiles on 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 14:01:03 2006
@@ -102,7 +102,7 @@
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 @@
for (;;)
{
LONG dwRead;
- if( !ReadFile( hStdoutRd, chBuf, 1, (LONG *)&dwRead, NULL) || dwRead == 0)
+ if( !ReadFile( hStdoutRd, chBuf, 1, (LPDWORD)&dwRead, NULL) || dwRead == 0)
{
break;
}