msxml3/tests: Windows 10 no longer supports variants by reference, so pass it directly.

Huw Davies huw at codeweavers.com
Wed Jan 18 08:57:54 CST 2017


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/msxml3/tests/httpreq.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/dlls/msxml3/tests/httpreq.c b/dlls/msxml3/tests/httpreq.c
index b50b153..55ea8b6 100644
--- a/dlls/msxml3/tests/httpreq.c
+++ b/dlls/msxml3/tests/httpreq.c
@@ -1433,7 +1433,7 @@ static void test_XMLHTTP(void)
     IXMLHttpRequest *xhr;
     IObjectWithSite *obj_site, *obj_site2;
     BSTR bstrResponse, str, str1;
-    VARIANT varbody, varbody_ref;
+    VARIANT varbody;
     VARIANT dummy;
     LONG state, status, bound;
     IDispatch *event;
@@ -1619,12 +1619,11 @@ static void test_XMLHTTP(void)
         SysFreeString(bstrResponse);
     }
 
-    /* POST: VT_VARIANT|VT_BYREF body */
+    /* POST: VT_VARIANT body */
+    /* VT_VARIANT|VT_BYREF fails on Windows 10 */
     test_open(xhr, "POST", urlA, S_OK);
 
-    V_VT(&varbody_ref) = VT_VARIANT|VT_BYREF;
-    V_VARIANTREF(&varbody_ref) = &varbody;
-    hr = IXMLHttpRequest_send(xhr, varbody_ref);
+    hr = IXMLHttpRequest_send(xhr, varbody);
     EXPECT_HR(hr, S_OK);
 
     /* GET request */
-- 
2.10.2




More information about the wine-patches mailing list