Andrew Eikum : oleaut32: Run LayOut on typeinfos that require it before saving.

Alexandre Julliard julliard at winehq.org
Mon Aug 19 14:32:59 CDT 2013


Module: wine
Branch: master
Commit: 341ff65b95e61b8c2580ec2d54fab8ab0416f26c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=341ff65b95e61b8c2580ec2d54fab8ab0416f26c

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Fri Aug 16 14:40:17 2013 -0500

oleaut32: Run LayOut on typeinfos that require it before saving.

---

 dlls/oleaut32/typelib.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 48a698f..4cccbac 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -9689,9 +9689,14 @@ static HRESULT WINAPI ICreateTypeLib2_fnSaveAllChanges(ICreateTypeLib2 *iface)
     HANDLE outfile;
     HRESULT hres;
     DWORD *junk;
+    UINT i;
 
     TRACE("%p\n", This);
 
+    for(i = 0; i < This->TypeInfoCount; ++i)
+        if(This->typeinfos[i]->needs_layout)
+            ICreateTypeInfo2_LayOut(&This->typeinfos[i]->ICreateTypeInfo2_iface);
+
     memset(&file, 0, sizeof(file));
 
     file.header.magic1 = 0x5446534D;




More information about the wine-cvs mailing list