From 82f76510055461f4a4706feed300b2db5479ca63 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Mon, 5 Sep 2011 11:45:45 +0200 Subject: [PATCH] winhttp: Properly test a boolean variant. --- dlls/winhttp/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c index a3c22074ff8..c46ce21d940 100644 --- a/dlls/winhttp/request.c +++ b/dlls/winhttp/request.c @@ -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();