winex11: Force unprotecting the DIB section bits in PutImage.

This commit is contained in:
Alexandre Julliard 2011-07-27 12:18:03 +02:00
parent fbb0e18051
commit 372ad442fc
1 changed files with 4 additions and 0 deletions

View File

@ -1919,6 +1919,10 @@ DWORD X11DRV_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINFO *info
int height = dst->visrect.bottom - dst->visrect.top;
image->data = dst_bits.ptr;
/* hack: make sure the bits are readable if we are reading from a DIB section */
/* to be removed once we get rid of DIB access protections */
if (!dst_bits.is_copy) IsBadReadPtr( dst_bits.ptr, height * image->bytes_per_line );
if (bitmap)
{
RGNDATA *clip_data = NULL;