mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
setupx.dll16: Fixed bad sizeof() (Coverity).
This commit is contained in:
parent
4a38b10a56
commit
68f8eff5e0
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue