[Wine-patches] [eter-2.0.0] oleaut32: Add support for saving an empty picture. (eterbug #8812)

Dmitry Timoshkov dtimoshkov на etersoft.ru
Вт Ноя 27 07:13:26 MSK 2012


---
 dlls/oleaut32/olepicture.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/oleaut32/olepicture.c b/dlls/oleaut32/olepicture.c
index 8e23d0e..7b489dc 100644
--- a/dlls/oleaut32/olepicture.c
+++ b/dlls/oleaut32/olepicture.c
@@ -1720,6 +1720,12 @@ static HRESULT WINAPI OLEPictureImpl_Save(
     TRACE("%p %p %d\n", This, pStm, fClearDirty);
 
     switch (This->desc.picType) {
+    case PICTYPE_NONE:
+        header[0] = 0x0000746c;
+        header[1] = 0;
+        hResult = IStream_Write(pStm, header, 2 * sizeof(DWORD), &dummy);
+        break;
+
     case PICTYPE_ICON:
         if (This->bIsDirty || !This->data) {
             if (!serializeIcon(This->desc.u.icon.hicon, &pIconData, &iDataSize)) {
-- 
1.7.12.4



Подробная информация о списке рассылки Wine-patches