[3/3] msxml3: Accept VT_ERROR body as empty data

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


This is how Visual Studio COM C++ wrappers work regarding optional 
argument in interface methods,
they use static variant class instance with type VT_ERROR and some error 
code as value, so every
optional call gets it as argument.

-------------- next part --------------
>From f0d484f374b60e809261bc374ef77082dba45922 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun, 24 Jun 2012 00:16:39 +0400
Subject: [PATCH 10/10] Accept VT_ERROR body as empty data

---
 dlls/msxml3/httprequest.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index 3ea7745..5700311 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -695,6 +695,7 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
             break;
         }
         case VT_EMPTY:
+        case VT_ERROR:
             ptr = NULL;
             size = 0;
             break;
-- 
1.5.6.5





More information about the wine-patches mailing list