[PATCH 3/5] qcap/avico: Initialize variant type to VT_BSTR in AVICompressorPropertyBag_Load().

Zebediah Figura z.figura12 at gmail.com
Mon Apr 8 18:02:35 CDT 2019


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/qcap/avico.c       | 2 +-
 dlls/qcap/tests/avico.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/qcap/avico.c b/dlls/qcap/avico.c
index d5020a0945..3351b36167 100644
--- a/dlls/qcap/avico.c
+++ b/dlls/qcap/avico.c
@@ -323,7 +323,7 @@ static HRESULT WINAPI AVICompressorPropertyBag_Load(IPersistPropertyBag *iface,
 
     TRACE("(%p)->(%p %p)\n", This, pPropBag, pErrorLog);
 
-    V_VT(&v) = VT_EMPTY;
+    V_VT(&v) = VT_BSTR;
     hres = IPropertyBag_Read(pPropBag, fcc_handlerW, &v, NULL);
     if(FAILED(hres)) {
         WARN("Could not read FccHandler: %08x\n", hres);
diff --git a/dlls/qcap/tests/avico.c b/dlls/qcap/tests/avico.c
index 0ee2e1bcb3..9ef66b9843 100644
--- a/dlls/qcap/tests/avico.c
+++ b/dlls/qcap/tests/avico.c
@@ -355,7 +355,7 @@ static unsigned int ppb_got_read;
 static HRESULT WINAPI property_bag_Read(IPropertyBag *iface, const WCHAR *name, VARIANT *var, IErrorLog *log)
 {
     ok(!lstrcmpW(name, fcchandlerW), "Got unexpected name %s.\n", wine_dbgstr_w(name));
-    todo_wine ok(V_VT(var) == VT_BSTR, "Got unexpected type %u.\n", V_VT(var));
+    ok(V_VT(var) == VT_BSTR, "Got unexpected type %u.\n", V_VT(var));
     ok(!log, "Got unexpected error log %p.\n", log);
     V_BSTR(var) = SysAllocString(ppb_handler);
     ppb_got_read++;
@@ -403,7 +403,7 @@ static void test_property_bag(IMoniker *mon)
 
     ppb_got_read = 0;
     hr = IPersistPropertyBag_Load(ppb, &property_bag, NULL);
-    todo_wine ok(hr == S_OK, "Got hr %#x.\n", hr);
+    ok(hr == S_OK, "Got hr %#x.\n", hr);
     ok(ppb_got_read == 1, "Got %u calls to Read().\n", ppb_got_read);
 
     ref = IPersistPropertyBag_Release(ppb);
-- 
2.21.0




More information about the wine-devel mailing list