tools/widl: Fix behaviour when both lcid and retval arguments are present.

This commit is contained in:
Huw Davies 2009-06-17 14:37:24 +01:00 committed by Alexandre Julliard
parent 5d898e3ebe
commit a6181cb3b2
1 changed files with 5 additions and 5 deletions

View File

@ -1515,15 +1515,15 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, var_t *func, int index)
paramdata[2] = paramflags;
typedata[3] += decoded_size << 16;
i++;
}
}
if(lcid_retval_count == 1)
typedata[4] |= 0x4000;
else if(lcid_retval_count == 2)
typedata[4] |= 0x8000;
i++;
}
}
if(typeinfo->funcs_allocated == 0) {
typeinfo->funcs_allocated = 10;
typeinfo->func_indices = xmalloc(typeinfo->funcs_allocated * sizeof(int));