mirror of
https://github.com/reactos/reactos.git
synced 2025-05-30 22:49:12 +00:00
Sync with Wine-20040213:
Robert Shearman <R.J.Shearman@warwick.ac.uk> Fix nGrow initialization in DPA_CreateEx. svn path=/trunk/; revision=8230
This commit is contained in:
parent
6cecd7c5a3
commit
1a0c848456
1 changed files with 1 additions and 1 deletions
|
@ -2195,7 +2195,7 @@ DPA_CreateEx (INT nGrow, HANDLE hHeap)
|
|||
hdpa = Alloc (sizeof(*hdpa));
|
||||
|
||||
if (hdpa) {
|
||||
hdpa->nGrow = min(8, nGrow);
|
||||
hdpa->nGrow = max(8, nGrow);
|
||||
hdpa->hHeap = hHeap ? hHeap : GetProcessHeap();
|
||||
hdpa->nMaxCount = hdpa->nGrow * 2;
|
||||
hdpa->ptrs = HeapAlloc (hdpa->hHeap, HEAP_ZERO_MEMORY,
|
||||
|
|
Loading…
Reference in a new issue