mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
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");
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user