Fixed the calculation of timeout values.
Modified: trunk/reactos/lib/kernel32/file/npipe.c
_____
Modified: trunk/reactos/lib/kernel32/file/npipe.c
--- trunk/reactos/lib/kernel32/file/npipe.c 2005-05-01 09:49:45 UTC
(rev 14905)
+++ trunk/reactos/lib/kernel32/file/npipe.c 2005-05-01 09:51:06 UTC
(rev 14906)
@@ -180,7 +180,7 @@
nMaxInstances = ULONG_MAX;
}
- DefaultTimeOut.QuadPart = nDefaultTimeOut * -10000;
+ DefaultTimeOut.QuadPart = nDefaultTimeOut * -10000LL;
Status = NtCreateNamedPipeFile(&PipeHandle,
DesiredAccess,
@@ -273,7 +273,7 @@
return(FALSE);
}
- WaitPipe.Timeout.QuadPart = nTimeOut * -10000;
+ WaitPipe.Timeout.QuadPart = nTimeOut * -10000LL;
Status = NtFsControlFile(FileHandle,
NULL,
@@ -428,7 +428,7 @@
if (lpCollectDataTimeout != NULL)
{
- SetState.Timeout.QuadPart = (*lpCollectDataTimeout) * -10000;
+ SetState.Timeout.QuadPart = (*lpCollectDataTimeout) * -10000LL;
}
else
{
Show replies by date