Hi Hans,
On 08/24/11 10:23, Hans Leidekker wrote:
- EnterCriticalSection(&request->cs );
- switch (option)
- {
- case WinHttpRequestOption_EnableRedirects:
- {
if (V_BOOL(&value ) == VARIANT_TRUE)
You shouldn't compare bools like that, it should be if(V_BOOL(&value)).
request->disable_feature&= !WINHTTP_DISABLE_REDIRECTS;
Here is a typo, it should be ~WINHTTP_DISABLE_REDIRECTS.
Jacek