Alexandre Julliard : gdi32: Create a sanitized BITMAPINFO in CreateDIBSection and pass that to the driver .