From dc7843590dd3f9d6e3593eed43f3410c063f3a4b Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 17 May 2012 18:30:28 +0900 Subject: [PATCH] oleaut32: OLEPictureImpl_Save should load bitmap data if it's not yet loaded. --- dlls/oleaut32/olepicture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c index 395afa96f9..beb14778b9 100644 --- a/dlls/oleaut32/olepicture.c +++ b/dlls/oleaut32/olepicture.c @@ -1776,7 +1776,7 @@ static HRESULT WINAPI OLEPictureImpl_Save( hResult = S_OK; break; case PICTYPE_BITMAP: - if (This->bIsDirty) { + if (This->bIsDirty || !This->data) { switch (This->keepOrigFormat ? This->loadtime_format : BITMAP_FORMAT_BMP) { case BITMAP_FORMAT_BMP: iSerializeResult = serializeBMP(This->desc.u.bmp.hbitmap, &pIconData, &iDataSize); -- 2.32.0.93.g670b81a890