Commit 83413751 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

winhttp: Avoid buffer overrun in alloc_handle.

parent af6f8ca4
......@@ -112,7 +112,7 @@ HINTERNET alloc_handle( object_header_t *hdr )
if (handles[handle]) ERR("handle isn't free but should be\n");
handles[handle] = addref_object( hdr );
while (handles[next_handle] && (next_handle < max_handles)) next_handle++;
while ((next_handle < max_handles) && handles[next_handle]) next_handle++;
end:
LeaveCriticalSection( &handle_cs );
......
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