gdi32: Fix dibdrv_PutImage for the selected bitmap case.

This commit is contained in:
Huw Davies 2011-08-05 13:20:31 +01:00 committed by Alexandre Julliard
parent 3a9fa90257
commit 37423cec7c
1 changed files with 3 additions and 0 deletions

View File

@ -542,7 +542,10 @@ static DWORD dibdrv_PutImage( PHYSDEV dev, HBITMAP hbitmap, HRGN clip, BITMAPINF
dib = &stand_alone;
}
else
{
pdev = get_dibdrv_pdev( dev );
dib = &pdev->dib;
}
if (info->bmiHeader.biPlanes != 1) goto update_format;
if (info->bmiHeader.biBitCount != dib->bit_count) goto update_format;