qcap/avico: Initialize variant type to VT_BSTR in AVICompressorPropertyBag_Load().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5f32efcf19
commit
9e6e2ee8d9
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue