Re: #1 winhttp: Add a handle management implementation.

2008-08-15 Thread Hans Leidekker
On Friday 15 August 2008 15:23:40 H. Verbeet wrote: > Not necessarily wrong, but the common way to implement tables like > this is to grow the table by some percentage of the original size, and > keep a list of free handles. Good point. I'll fix that when we have the basics of this dll covered.

Re: #1 winhttp: Add a handle management implementation.

2008-08-15 Thread Hans Leidekker
On Friday 15 August 2008 14:41:36 Hans Leidekker wrote: Sorry for the From address confusion. The CodeWeavers mail server accused me of relaying but I found out now that it's because I forgot to enable authenticated SMTP. -Hans

Re: #1 winhttp: Add a handle management implementation.

2008-08-15 Thread H. Verbeet
2008/8/15 Hans Leidekker <[EMAIL PROTECTED]>: > > +HINTERNET alloc_handle( object_header_t *hdr ) > +{ > +object_header_t **p; > +ULONG_PTR handle = 0, num; > + > +list_init( &hdr->children ); > + > +EnterCriticalSection( &handle_cs ); > +if (!max_handles) > +{ > +nu