[Wine-patches] [eter-2.0.0 3/3] oleaut32: OLEPictureImpl_Save should load bitmap data if it's not yet loaded. [eterbug #8463]
Dmitry Timoshkov
dtimoshkov на etersoft.ru
Пт Май 18 07:23:50 MSK 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 62f9f6d..b1185e5 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -1739,7 +1739,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
Подробная информация о списке рассылки Wine-patches