Marcus Meissner : setupx.dll16: Fixed bad sizeof() (Coverity).
Alexandre Julliard
julliard at winehq.org
Mon Oct 17 13:08:55 CDT 2011
Module: wine
Branch: master
Commit: 68f8eff5e0e8ea255349d28e617cfc27843a54b3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=68f8eff5e0e8ea255349d28e617cfc27843a54b3
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Mon Oct 17 00:26:21 2011 +0200
setupx.dll16: Fixed bad sizeof() (Coverity).
---
dlls/setupx.dll16/virtcopy.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/setupx.dll16/virtcopy.c b/dlls/setupx.dll16/virtcopy.c
index 5137548..f2ce4e8 100644
--- a/dlls/setupx.dll16/virtcopy.c
+++ b/dlls/setupx.dll16/virtcopy.c
@@ -224,10 +224,10 @@ static RETERR16 VCP_VirtnodeCreate(const VCPFILESPEC *vfsSrc, const VCPFILESPEC
vn_num += 20;
if (pvnlist)
pvnlist = HeapReAlloc(heap, HEAP_ZERO_MEMORY, pvnlist,
- sizeof(LPVIRTNODE *) * vn_num);
+ sizeof(*pvnlist) * vn_num);
else
pvnlist = HeapAlloc(heap, HEAP_ZERO_MEMORY,
- sizeof(LPVIRTNODE *) * vn_num);
+ sizeof(*pvnlist) * vn_num);
}
pvnlist[vn_last] = HeapAlloc(heap, HEAP_ZERO_MEMORY, sizeof(VIRTNODE));
lpvn = pvnlist[vn_last];
More information about the wine-cvs
mailing list