Hans Leidekker : winhttp: Properly test a boolean variant.
Alexandre Julliard
julliard at winehq.org
Mon Sep 5 13:26:22 CDT 2011
Module: wine
Branch: master
Commit: 82f76510055461f4a4706feed300b2db5479ca63
URL: http://source.winehq.org/git/wine.git/?a=commit;h=82f76510055461f4a4706feed300b2db5479ca63
Author: Hans Leidekker <hans at codeweavers.com>
Date: Mon Sep 5 11:45:45 2011 +0200
winhttp: Properly test a boolean variant.
---
dlls/winhttp/request.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winhttp/request.c b/dlls/winhttp/request.c
index a3c2207..c46ce21 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();
More information about the wine-cvs
mailing list