From 341ff65b95e61b8c2580ec2d54fab8ab0416f26c Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 16 Aug 2013 14:40:17 -0500 Subject: [PATCH] oleaut32: Run LayOut on typeinfos that require it before saving. --- dlls/oleaut32/typelib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 48a698f832a..4cccbac50da 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;