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

This commit is contained in:
Alexandre Julliard 2010-05-20 09:48:35 +02:00
parent 8f1853a309
commit 5decff1897
1 changed files with 1 additions and 1 deletions

View File

@ -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) {