Nikolay Sivov : oleaut32: Use correct allocation length (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Dec 10 14:00:38 CST 2012
Module: wine
Branch: master
Commit: 61ad275e82bf38248e7de2fb7131a65f94213712
URL: http://source.winehq.org/git/wine.git/?a=commit;h=61ad275e82bf38248e7de2fb7131a65f94213712
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Dec 8 14:21:12 2012 +0400
oleaut32: Use correct allocation length (Coverity).
---
dlls/oleaut32/recinfo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/recinfo.c b/dlls/oleaut32/recinfo.c
index f6f5653..04cd377 100644
--- a/dlls/oleaut32/recinfo.c
+++ b/dlls/oleaut32/recinfo.c
@@ -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);
More information about the wine-cvs
mailing list