Commit 5decff18 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Ignore the bitmap offset if it's not set.

parent 8f1853a3
...@@ -2423,7 +2423,7 @@ static HBITMAP BITMAP_Load( HINSTANCE instance, LPCWSTR name, ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment