gdi32: CBM_INIT is a flag.
This commit is contained in:
parent
03584b4ff6
commit
3742389d45
|
@ -1120,7 +1120,7 @@ HBITMAP WINAPI CreateDIBitmap( HDC hdc, const BITMAPINFOHEADER *header,
|
|||
|
||||
if (handle)
|
||||
{
|
||||
if (init == CBM_INIT)
|
||||
if (init & CBM_INIT)
|
||||
{
|
||||
if (SetDIBits( hdc, handle, 0, height, bits, data, coloruse ) == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue