[4/5] oleaut32: OLEPictureImpl_Save should load bitmap data if it's not yet loaded.
Dmitry Timoshkov
dmitry at baikal.ru
Thu May 17 04:30:28 CDT 2012
It already does that for an icon.
---
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 395afa9..beb1477 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);
--
1.7.10.1
More information about the wine-patches
mailing list