mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
NtReadFile checks that offset is not null.
This commit is contained in:
parent
56c449b9e6
commit
b40a287e03
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue