From 0bac055b5662b31f72b7f5bc665ef85ad97aff56 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Tue, 29 Mar 2016 18:31:15 -0600 Subject: [PATCH] ole32: Fix sizeof mismatch in CompositeMonikerImpl_Construct. Signed-off-by: Alex Henrie Signed-off-by: Marcus Meissner Signed-off-by: Alexandre Julliard --- dlls/ole32/compositemoniker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/compositemoniker.c b/dlls/ole32/compositemoniker.c index e431bfced30..e1e0e5cf804 100644 --- a/dlls/ole32/compositemoniker.c +++ b/dlls/ole32/compositemoniker.c @@ -1803,7 +1803,7 @@ CompositeMonikerImpl_Construct(IMoniker **ppMoniker, IMoniker *pmkFirst, IMonike LPVOID tab_moniker = This->tabMoniker; This->tabSize+=BLOCK_TAB_SIZE; - This->tabMoniker=HeapReAlloc(GetProcessHeap(),0,This->tabMoniker,This->tabSize*sizeof(IMoniker)); + This->tabMoniker=HeapReAlloc(GetProcessHeap(),0,This->tabMoniker,This->tabSize*sizeof(This->tabMoniker[0])); if (This->tabMoniker==NULL){ HeapFree(GetProcessHeap(), 0, tab_moniker);