Message-ID: <4398735E.9030004@reactos.com>
Date: Thu, 08 Dec 2005 18:54:38 +0100
From: Filip Navara <navaraf@reactos.com>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ReactOS Development List <ros-dev@reactos.org>
Subject: Re: [ros-dev] Unhandled Exception in kernel32 ReadFile file\rw.c
	line	233
References: <19e31a080512080248j12db52fdi845283c8b548054e@mail.gmail.com>
In-Reply-To: <19e31a080512080248j12db52fdi845283c8b548054e@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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

