shell32/ebrowser: Respond to IOleWindow from IExplorerBrowser.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-04-24 13:21:42 +03:00 committed by Alexandre Julliard
parent 6eeb389d15
commit 5badc91a0f
2 changed files with 3 additions and 2 deletions

View file

@ -782,7 +782,8 @@ static HRESULT WINAPI IExplorerBrowser_fnQueryInterface(IExplorerBrowser *iface,
{
*ppvObject = &This->IExplorerBrowser_iface;
}
else if(IsEqualIID(riid, &IID_IShellBrowser))
else if(IsEqualIID(riid, &IID_IShellBrowser) ||
IsEqualIID(riid, &IID_IOleWindow))
{
*ppvObject = &This->IShellBrowser_iface;
}

View file

@ -575,7 +575,7 @@ static void test_QueryInterface(void)
test_qinterface(IID_IUnknown, S_OK);
test_qinterface(IID_IExplorerBrowser, S_OK);
test_qinterface(IID_IShellBrowser, S_OK);
todo_wine test_qinterface(IID_IOleWindow, S_OK);
test_qinterface(IID_IOleWindow, S_OK);
test_qinterface(IID_ICommDlgBrowser, S_OK);
test_qinterface(IID_ICommDlgBrowser2, S_OK);
test_qinterface(IID_ICommDlgBrowser3, S_OK);