NtReadFile check
Carlos Lozano
clozano at andago.com
Sat Nov 8 10:37:29 CST 2003
Changelog
NtReadFile check that offset is not null.
Regards,
Carlos.
--
___ _ \ | / Consulting
| . |._ _ _| | ___ ___ ___ http://www.andago.com
| || ' |/ . |<_> |/ . |/ . \__ GNU/Linux
|_|_||_|_|\___|<___|\_. |\___/ _ \ __|\ \ /
Carlos A. Lozano <___'/ | \ -_) __/\__ \ > < -_)
[ carlos.lozano at andago.com ]\___|_| ____/ _/\_\___|
[ calb at epsxe.com ] http://www.epsxe.com
-------------- next part --------------
Index: dlls/ntdll/file.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/file.c,v
retrieving revision 1.32
diff -u -r1.32 file.c
--- dlls/ntdll/file.c 8 Oct 2003 03:51:31 -0000 1.32
+++ dlls/ntdll/file.c 8 Nov 2003 16:33:53 -0000
@@ -383,8 +383,13 @@
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;
More information about the wine-patches
mailing list