Rein Klazes <[EMAIL PROTECTED]> 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 comment... -- Alexandre Julliard [EMAIL PROTECTED]