Hans Leidekker : winhttp: Double the handle table size on reallocation.
Alexandre Julliard
julliard at winehq.org
Thu Dec 1 14:05:33 CST 2011
Module: wine
Branch: master
Commit: 5683433f9cc4d3d8f05a11b5f9fa25cb27c6ebf9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5683433f9cc4d3d8f05a11b5f9fa25cb27c6ebf9
Author: Hans Leidekker <hans at codeweavers.com>
Date: Thu Dec 1 13:02:53 2011 +0100
winhttp: Double the handle table size on reallocation.
---
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;
More information about the wine-cvs
mailing list