Dmitry Timoshkov : oleaut32: OLEPictureImpl_Save should load bitmap data if it's not yet loaded.
Alexandre Julliard
julliard at winehq.org
Thu May 17 13:46:01 CDT 2012
Module: wine
Branch: master
Commit: dc7843590dd3f9d6e3593eed43f3410c063f3a4b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dc7843590dd3f9d6e3593eed43f3410c063f3a4b
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Thu May 17 18:30:28 2012 +0900
oleaut32: OLEPictureImpl_Save should load bitmap data if it's not yet loaded.
---
dlls/oleaut32/olepicture.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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);
More information about the wine-cvs
mailing list