NtReadFile checks that offset is not null.

This commit is contained in:
Carlos Lozano 2003-11-11 21:57:07 +00:00 committed by Alexandre Julliard
parent 56c449b9e6
commit b40a287e03
1 changed files with 7 additions and 2 deletions

View File

@ -383,8 +383,13 @@ NTSTATUS WINAPI NtReadFile(HANDLE hFile, HANDLE hEvent,
ovp->async.event = hEvent;
ovp->async.iosb = io_status;
ovp->count = length;
ovp->offset = offset->s.LowPart;
if (offset->s.HighPart) FIXME("NIY-high part\n");
if ( offset == NULL )
ovp->offset = 0;
else
{
ovp->offset = offset->s.LowPart;
if (offset->s.HighPart) FIXME("NIY-high part\n");
}
ovp->apc = apc;
ovp->apc_user = apc_user;
ovp->buffer = buffer;