winhttp: Properly test a boolean variant.

This commit is contained in:
Hans Leidekker 2011-09-05 11:45:45 +02:00 committed by Alexandre Julliard
parent 1edf2d4a03
commit 82f7651005
1 changed files with 1 additions and 1 deletions

View File

@ -2541,7 +2541,7 @@ static HRESULT WINAPI winhttp_request_Open(
path[uc.dwUrlPathLength + uc.dwExtraInfoLength] = 0;
if (!(verb = strdupW( method ))) goto error;
if (V_BOOL( &async ) == VARIANT_TRUE) flags |= WINHTTP_FLAG_ASYNC;
if (V_BOOL( &async )) flags |= WINHTTP_FLAG_ASYNC;
if (!(hsession = WinHttpOpen( user_agentW, WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, NULL, NULL, flags )))
{
err = get_last_error();