mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
winhttp: Double the handle table size on reallocation.
This commit is contained in:
parent
9a5ad30225
commit
5683433f9c
@ -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 New Issue
Block a user