[PATCH] explorerframe: Fixed incorrect sizeof (Coverity)

Marcus Meissner meissner at suse.de
Mon Oct 17 22:12:52 CDT 2011


Hi,

one more. CID 3780

Ciao, Marcus
---
 dlls/explorerframe/nstc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/explorerframe/nstc.c b/dlls/explorerframe/nstc.c
index 9a8c75b..00ad1f6 100644
--- a/dlls/explorerframe/nstc.c
+++ b/dlls/explorerframe/nstc.c
@@ -1114,7 +1114,7 @@ static HRESULT WINAPI NSTC2_fnGetRootItems(INameSpaceTreeControl2* iface,
     if(!count)
         return E_INVALIDARG;
 
-    array = HeapAlloc(GetProcessHeap(), 0, sizeof(LPITEMIDLIST*)*count);
+    array = HeapAlloc(GetProcessHeap(), 0, sizeof(LPITEMIDLIST)*count);
 
     i = 0;
     LIST_FOR_EACH_ENTRY(root, &This->roots, nstc_root, entry)
-- 
1.7.1




More information about the wine-patches mailing list