Allow offset of NULL to NtWriteFile.
This commit is contained in:
parent
17ffed02eb
commit
41beb71636
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue