user32: Ignore the bitmap offset if it's not set.
This commit is contained in:
parent
8f1853a309
commit
5decff1897
|
@ -2423,7 +2423,7 @@ static HBITMAP BITMAP_Load( HINSTANCE instance, LPCWSTR name,
|
||||||
WARN("Invalid/unsupported bitmap format!\n");
|
WARN("Invalid/unsupported bitmap format!\n");
|
||||||
goto end_close;
|
goto end_close;
|
||||||
}
|
}
|
||||||
offbits = bmfh->bfOffBits - sizeof(BITMAPFILEHEADER);
|
if (bmfh->bfOffBits) offbits = bmfh->bfOffBits - sizeof(BITMAPFILEHEADER);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info->bmiHeader.biHeight > 65535 || info->bmiHeader.biWidth > 65535) {
|
if (info->bmiHeader.biHeight > 65535 || info->bmiHeader.biWidth > 65535) {
|
||||||
|
|
Loading…
Reference in New Issue