diff --git a/src/engine/execnt.c b/src/engine/execnt.c index 4e512f149..a712e15d3 100644 --- a/src/engine/execnt.c +++ b/src/engine/execnt.c @@ -770,7 +770,7 @@ static void read_pipe for (;;) { /* check if we have any data to read */ - if ( !PeekNamedPipe( in, ioBuffer, IO_BUFFER_SIZE, &bytesInBuffer, + if ( !PeekNamedPipe( in, NULL, IO_BUFFER_SIZE, NULL, &bytesAvailable, NULL ) || bytesAvailable == 0 ) return;