user32/gdi32: Fix for a crash in create_alpha_bitmap()

Alexandre Julliard julliard at winehq.org
Mon Jan 31 05:37:59 CST 2011


Peter Schlaile <peter at schlaile.de> writes:

> Fix: X11DRV_SetDIBits() shouldn't silently change Bitmap protection, so
>  we now restore the protection bits, that were present before instead of
>  always changing to READONLY.

No, it needs to be read-only so that we can detect further changes.

> Additional minor fix: bmi_has_alpha() tests for alpha channel != 0, but
>  should test for alpha channel != 255.

No it shouldn't, 0 is correct.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list