USER32: LoadImage(IMAGE_BITMAP) should reject invalid BMP files (with tests)

Alex Villací­s Lasso a_villacis at
Fri Apr 11 10:19:00 CDT 2008

Fixes bug #11784 .

* Add minimal validation in BITMAP_Load (the actual implementation of 
the LoadImage(IMAGE_BITMAP) flag) that the just-loaded file is in fact a 
BMP file. Reject and return 0 otherwise.
* Tests for rejection of invalid files.

perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-user32-cursoricon-reject-LoadImage-non-bmp.patch
Type: text/x-patch
Size: 6839 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list