[2/3] msxml3: Fix async flag setting

Nikolay Sivov nsivov at codeweavers.com
Mon Jun 25 02:50:51 CDT 2012


Fix async flag setting
-------------- next part --------------
>From 813f3790e0b68084682bca67fb14a702bb1cca4f Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat, 23 Jun 2012 19:44:04 +0400
Subject: [PATCH 09/10] Fix async flag setting

Apparently resulting variant value is not limitted to VARIANT_BOOL type values
---
 dlls/msxml3/httprequest.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index 4ce5a77..3ea7745 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -815,7 +815,7 @@ static HRESULT httprequest_open(httprequest *This, BSTR method, BSTR url,
 
     VariantInit(&is_async);
     hr = VariantChangeType(&is_async, &async, 0, VT_BOOL);
-    This->async = hr == S_OK && V_BOOL(&is_async) == VARIANT_TRUE;
+    This->async = hr == S_OK && V_BOOL(&is_async);
 
     VariantInit(&str);
     hr = VariantChangeType(&str, &user, 0, VT_BSTR);
-- 
1.5.6.5




More information about the wine-patches mailing list