[PATCH 4/6] winhttp: Use the thread pool for the connection collector.

Jacek Caban jacek at codeweavers.com
Fri Nov 23 07:06:20 CST 2018


Hi Hans,

On 11/23/18 11:35 AM, Hans Leidekker wrote:
> @@ -1495,7 +1492,7 @@ static DWORD WINAPI connection_collector(void *arg)
>           LeaveCriticalSection(&connection_pool_cs);
>       } while(remaining_connections);
>   
> -    FreeLibraryAndExitThread( winhttp_instance, 0 );
> +    FreeLibrary( winhttp_instance );


If winhttp_instance is the last instance of winhttp.dll, FreeLibrary 
will return back to code that is has just unloaded.


Jacek




More information about the wine-devel mailing list