Subject: Re: [ros-dev] Unhandled Exception in kernel32 ReadFile file\rw.c line 233
From: Filip Navara <[email-masked]>
To: ReactOS Development List <[email-masked]>
Date: Thu, 08 Dec 2005 18:54:38 +0100

Steven Edwards wrote:

>Hi,
>I have a 100% reproducible problem at the end of the Office2000
>install on the trunk + local patches. I am hitting a usermode
>exception in ReadFile on line 233. The offending code is here
>
>        if (NT_SUCCESS(Status))
>          {
>             /* lpNumberOfBytesRead must not be NULL here, in fact Win doesn't
>                check that case either and crashes (only after the operation
>                completed) */
>             *lpNumberOfBytesRead = Iosb.Information;
>          }
>
>Art suggested using ProbeForWrite to handle the problem. Can someone
>point me to a example of how to handle this except or even better
>would someone be willing to look at implementing the check for me? =)
>  
>
The caller is at fault. It's probably some Wine DLL code.

 - Filip