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

This commit is contained in:
Andrew Eikum 2013-08-16 14:40:17 -05:00 committed by Alexandre Julliard
parent f66523abee
commit 341ff65b95

View File

@ -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;