oleaut32: Improve MEMBERID assignment in ICreateTypeInfo::LayOut.

This commit is contained in:
Andrew Eikum 2010-08-20 14:59:17 -05:00 committed by Alexandre Julliard
parent 471475ec28
commit 3788a080cf
1 changed files with 3 additions and 3 deletions

View File

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