Commit ab5c3ad8 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

browseui: Call interface methods properly.

parent bd102b52
...@@ -113,7 +113,7 @@ static HRESULT WINAPI ACLMulti_QueryInterface(IEnumString *iface, REFIID iid, LP ...@@ -113,7 +113,7 @@ static HRESULT WINAPI ACLMulti_QueryInterface(IEnumString *iface, REFIID iid, LP
if (*ppvOut) if (*ppvOut)
{ {
IUnknown_AddRef(iface); IEnumString_AddRef(iface);
return S_OK; return S_OK;
} }
......
...@@ -72,7 +72,7 @@ static HRESULT WINAPI ACLShellSource_QueryInterface(IACList2 *iface, REFIID iid, ...@@ -72,7 +72,7 @@ static HRESULT WINAPI ACLShellSource_QueryInterface(IACList2 *iface, REFIID iid,
if (*ppvOut) if (*ppvOut)
{ {
IUnknown_AddRef(iface); IACList2_AddRef(iface);
return S_OK; return S_OK;
} }
......
...@@ -291,7 +291,7 @@ static HRESULT WINAPI ProgressDialog_QueryInterface(IProgressDialog *iface, REFI ...@@ -291,7 +291,7 @@ static HRESULT WINAPI ProgressDialog_QueryInterface(IProgressDialog *iface, REFI
if (*ppvOut) if (*ppvOut)
{ {
IUnknown_AddRef(iface); IProgressDialog_AddRef(iface);
return S_OK; return S_OK;
} }
......
...@@ -39,19 +39,19 @@ static void test_IProgressDialog_QueryInterface(void) ...@@ -39,19 +39,19 @@ static void test_IProgressDialog_QueryInterface(void)
return; return;
} }
hr = IUnknown_QueryInterface(dlg, &IID_IUnknown, NULL); hr = IProgressDialog_QueryInterface(dlg, &IID_IUnknown, NULL);
ok(hr == E_POINTER, "got 0x%x (expected E_POINTER)\n", hr); ok(hr == E_POINTER, "got 0x%x (expected E_POINTER)\n", hr);
hr = IUnknown_QueryInterface(dlg, &IID_IUnknown, (void**)&unk); hr = IProgressDialog_QueryInterface(dlg, &IID_IUnknown, (void**)&unk);
ok(hr == S_OK, "QueryInterface (IUnknown) returned 0x%x\n", hr); ok(hr == S_OK, "QueryInterface (IUnknown) returned 0x%x\n", hr);
if (SUCCEEDED(hr)) { if (SUCCEEDED(hr)) {
IUnknown_Release(unk); IUnknown_Release(unk);
} }
hr = IUnknown_QueryInterface(dlg, &IID_IOleWindow, (void**)&olewindow); hr = IProgressDialog_QueryInterface(dlg, &IID_IOleWindow, (void**)&olewindow);
ok(hr == S_OK, "QueryInterface (IOleWindow) returned 0x%x\n", hr); ok(hr == S_OK, "QueryInterface (IOleWindow) returned 0x%x\n", hr);
if (SUCCEEDED(hr)) { if (SUCCEEDED(hr)) {
hr = IUnknown_QueryInterface(olewindow, &IID_IProgressDialog, (void**)&dlg2); hr = IOleWindow_QueryInterface(olewindow, &IID_IProgressDialog, (void**)&dlg2);
ok(hr == S_OK, "QueryInterface (IProgressDialog) returned 0x%x\n", hr); ok(hr == S_OK, "QueryInterface (IProgressDialog) returned 0x%x\n", hr);
if (SUCCEEDED(hr)) { if (SUCCEEDED(hr)) {
IProgressDialog_Release(dlg2); IProgressDialog_Release(dlg2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment