Allow offset of NULL to NtWriteFile.

This commit is contained in:
Marcus Meissner 2004-01-09 20:09:08 +00:00 committed by Alexandre Julliard
parent 17ffed02eb
commit 41beb71636
1 changed files with 6 additions and 2 deletions

View File

@ -558,8 +558,12 @@ NTSTATUS WINAPI NtWriteFile(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) {
ovp->offset = offset->s.LowPart;
if (offset->s.HighPart) FIXME("NIY-high part\n");
} else {
ovp->offset = 0;
}
ovp->apc = apc;
ovp->apc_user = apc_user;
ovp->buffer = (void*)buffer;