Thomas Faber : oleaut32: Fix build with MSVC.

Alexandre Julliard julliard at winehq.org
Mon Jun 11 15:08:07 CDT 2012


Module: wine
Branch: master
Commit: 7f5714107896a8820f85b21852c4288607ecd7a9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7f5714107896a8820f85b21852c4288607ecd7a9

Author: Thomas Faber <thfabba at gmx.de>
Date:   Mon Jun 11 09:35:46 2012 +0200

oleaut32: Fix build with MSVC.

---

 dlls/oleaut32/typelib2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/oleaut32/typelib2.c b/dlls/oleaut32/typelib2.c
index fd4e547..bf45ce8 100644
--- a/dlls/oleaut32/typelib2.c
+++ b/dlls/oleaut32/typelib2.c
@@ -1987,7 +1987,7 @@ static HRESULT WINAPI ICreateTypeInfo2_fnAddFuncDesc(
     if(!insert)
         return E_OUTOFMEMORY;
     insert->u.data = heap_alloc(FIELD_OFFSET(MSFT_FuncRecord, HelpContext) +
-                            sizeof(int[(num_defaults?4:3)])*pFuncDesc->cParams);
+                            sizeof(int)*(num_defaults?4:3)*pFuncDesc->cParams);
     if(!insert->u.data) {
         heap_free(insert);
         return E_OUTOFMEMORY;




More information about the wine-cvs mailing list