[3/3] winhttp: Double the handle table size on reallocation.

Hans Leidekker hans at codeweavers.com
Thu Dec 1 06:02:53 CST 2011


---
 dlls/winhttp/handle.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winhttp/handle.c b/dlls/winhttp/handle.c
index 7010727..7a346a8 100644
--- a/dlls/winhttp/handle.c
+++ b/dlls/winhttp/handle.c
@@ -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;
-- 
1.7.7.3







More information about the wine-patches mailing list