diff --git a/dlls/wing.dll16/wing.c b/dlls/wing.dll16/wing.c index fb4aa56daeb..e1f2c070955 100644 --- a/dlls/wing.dll16/wing.c +++ b/dlls/wing.dll16/wing.c @@ -178,7 +178,7 @@ HBITMAP16 WINAPI WinGCreateBitmap16(HDC16 hdc, BITMAPINFO *bmpi, SEGPTR *bits) TRACE("(%d,%p,%p): create %dx%dx%d bitmap\n", hdc, bmpi, bits, bmpi->bmiHeader.biWidth, bmpi->bmiHeader.biHeight, bmpi->bmiHeader.biPlanes); - hbitmap = CreateDIBSection( HDC_32(hdc), bmpi, BI_RGB, &bits32, 0, 0 ); + hbitmap = CreateDIBSection( HDC_32(hdc), bmpi, DIB_RGB_COLORS, &bits32, 0, 0 ); if (hbitmap) { SEGPTR segptr = alloc_segptr_bits( hbitmap, bits32 ); diff --git a/dlls/wing32/wing32.c b/dlls/wing32/wing32.c index ac749867e9f..7ec591417ac 100644 --- a/dlls/wing32/wing32.c +++ b/dlls/wing32/wing32.c @@ -60,7 +60,7 @@ BOOL WINAPI WinGRecommendDIBFormat( BITMAPINFO *bmi ) */ HBITMAP WINAPI WinGCreateBitmap( HDC hdc, BITMAPINFO *bmi, void **bits ) { - return CreateDIBSection( hdc, bmi, 0, bits, 0, 0 ); + return CreateDIBSection( hdc, bmi, DIB_RGB_COLORS, bits, 0, 0 ); } /***********************************************************************