mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
winhttp: Double the handle table size on reallocation.
This commit is contained in:
parent
9a5ad30225
commit
5683433f9c
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ HINTERNET alloc_handle( object_header_t *hdr )
|
|||
}
|
||||
if (max_handles == next_handle)
|
||||
{
|
||||
num = max_handles + HANDLE_CHUNK_SIZE;
|
||||
num = max_handles * 2;
|
||||
if (!(p = heap_realloc_zero( handles, sizeof(ULONG_PTR) * num ))) goto end;
|
||||
handles = p;
|
||||
max_handles = num;
|
||||
|
|
Loading…
Reference in a new issue