Commit 5683433f authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winhttp: Double the handle table size on reallocation.

parent 9a5ad302
...@@ -103,7 +103,7 @@ HINTERNET alloc_handle( object_header_t *hdr ) ...@@ -103,7 +103,7 @@ HINTERNET alloc_handle( object_header_t *hdr )
} }
if (max_handles == next_handle) 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; if (!(p = heap_realloc_zero( handles, sizeof(ULONG_PTR) * num ))) goto end;
handles = p; handles = p;
max_handles = num; max_handles = num;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment