In OlePictureImpl_Load, always use DIB_RGB_COLORS because no indexed

palette has been defined.
This commit is contained in:
Walt Ogburn 2004-11-09 20:02:25 +00:00 committed by Alexandre Julliard
parent a9b1aa28b3
commit e5013299e0
1 changed files with 1 additions and 1 deletions

View File

@ -1293,7 +1293,7 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
CBM_INIT,
xbuf+bfh->bfOffBits,
bi,
(bi->bmiHeader.biBitCount<=8)?DIB_PAL_COLORS:DIB_RGB_COLORS
DIB_RGB_COLORS
);
DeleteDC(hdcref);
This->desc.picType = PICTYPE_BITMAP;