LockDIBSection problem

Alexandre Julliard julliard at winehq.org
Fri May 6 09:01:06 CDT 2005

Rein Klazes <wijn at wanadoo.nl> writes:

> I managed to fixed it in two ways:
> 1. put a 
>     X11DRV_CoerceDIBSection( physDevDst, DIB_Status_InSync, FALSE );
> at the end of X11DRV_BitBlt. This probably defeats the whole purpose of
> these protections so:
> 2. Add a "IsBadReadPtr( buffer, bytesToWrite)" in the top of WriteFile
> to force an exception and everything works.
> Would that be an acceptable fix?

We don't want that at the top of WriteFile, but it could be OK to add
special handling of the INVALID_USER_BUFFER error, with a big FIXME

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list