Marcus Meissner : explorerframe: Fixed incorrect sizeof (Coverity).

Alexandre Julliard julliard at winehq.org
Tue Oct 18 12:56:28 CDT 2011


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

Author: Marcus Meissner <meissner at suse.de>
Date:   Tue Oct 18 05:12:52 2011 +0200

explorerframe: Fixed incorrect sizeof (Coverity).

---

 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)




More information about the wine-cvs mailing list