Alexandre Julliard : gdi32: Create a sanitized BITMAPINFO in SetDIBitsToDevice and pass that to the drivers .