oleaut32: Use correct allocation length (Coverity).

This commit is contained in:
Nikolay Sivov 2012-12-08 14:21:12 +04:00 committed by Alexandre Julliard
parent 25e996bd6c
commit 61ad275e82
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ HRESULT WINAPI GetRecordInfoFromTypeInfo(ITypeInfo* pTI, IRecordInfo** ppRecInfo
ret->name = NULL;
}
ret->fields = HeapAlloc(GetProcessHeap(), 0, ret->n_vars*sizeof(VARDESC));
ret->fields = HeapAlloc(GetProcessHeap(), 0, ret->n_vars*sizeof(fieldstr));
for(i = 0; i<ret->n_vars; i++) {
VARDESC *vardesc;
hres = ITypeInfo_GetVarDesc(pTypeInfo, i, &vardesc);