From 3788a080cf5b0f5e67cc5da9ff31510b96700162 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Fri, 20 Aug 2010 14:59:17 -0500 Subject: [PATCH] oleaut32: Improve MEMBERID assignment in ICreateTypeInfo::LayOut. --- dlls/oleaut32/typelib2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c index 84c51a29a1d..77f072ab767 100644 --- a/dlls/oleaut32/typelib2.c +++ b/dlls/oleaut32/typelib2.c @@ -2638,13 +2638,13 @@ static HRESULT WINAPI ICreateTypeInfo2_fnLayOut( for(iter2=This->typedata->next->next; iter2!=This->typedata->next; iter2=iter2->next) { if(iter == iter2) continue; if(iter2->indice == iter->indice) { - iter->indice = 0x5fffffff + This->typeinfo->cElement + i + (This->typeinfo->datatype2<<16); + iter->indice = 0x60000000 + This->typeinfo->cElement + (This->typeinfo->datatype2<<16); for(iter2=This->typedata->next->next; iter2!=This->typedata->next; iter2=iter2->next) { if(iter == iter2) continue; if(iter2->indice == iter->indice) { - HeapFree(GetProcessHeap(), 0, typedata); - return E_ACCESSDENIED; + ++iter->indice; + iter2 = This->typedata->next; } } -- 2.11.4.GIT