Commit 1f6c759e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shell32: IShellView::ContextSensitiveHelp not implemented.

parent acdce245
......@@ -1807,13 +1807,11 @@ static HRESULT WINAPI IShellView_fnGetWindow(IShellView2 * iface,HWND * phWnd)
return S_OK;
}
static HRESULT WINAPI IShellView_fnContextSensitiveHelp(IShellView2 * iface,BOOL fEnterMode)
static HRESULT WINAPI IShellView_fnContextSensitiveHelp(IShellView2 *iface, BOOL mode)
{
IShellViewImpl *This = (IShellViewImpl *)iface;
FIXME("(%p) stub\n",This);
return E_NOTIMPL;
IShellViewImpl *This = (IShellViewImpl *)iface;
TRACE("(%p)->(%d)\n", This, mode);
return E_NOTIMPL;
}
/**********************************************************
......@@ -3074,7 +3072,7 @@ static HRESULT WINAPI IShellFolderView_fnGetSelectedObjects(
*pidl = LocalAlloc(0, *items*sizeof(LPITEMIDLIST));
if (!*pidl) return E_OUTOFMEMORY;
/* it's documented that caller shouldn't PIDLs, only array itself */
/* it's documented that caller shouldn't free PIDLs, only array itself */
memcpy((PITEMID_CHILD*)*pidl, This->apidl, *items*sizeof(LPITEMIDLIST));
}
......
......@@ -587,6 +587,28 @@ static void test_IShellFolderView(void)
IShellFolder_Release(desktop);
}
static void test_IOleWindow(void)
{
IShellFolder *desktop;
IShellView *view;
HRESULT hr;
hr = SHGetDesktopFolder(&desktop);
ok(hr == S_OK, "got (0x%08x)\n", hr);
hr = IShellFolder_CreateViewObject(desktop, NULL, &IID_IShellView, (void**)&view);
ok(hr == S_OK, "got (0x%08x)\n", hr);
/* IShellView::ContextSensitiveHelp */
hr = IShellView_ContextSensitiveHelp(view, TRUE);
ok(hr == E_NOTIMPL, "got (0x%08x)\n", hr);
hr = IShellView_ContextSensitiveHelp(view, FALSE);
ok(hr == E_NOTIMPL, "got (0x%08x)\n", hr);
IShellView_Release(view);
IShellFolder_Release(desktop);
}
START_TEST(shlview)
{
OleInitialize(NULL);
......@@ -597,6 +619,7 @@ START_TEST(shlview)
test_IFolderView();
test_GetItemObject();
test_IShellFolderView();
test_IOleWindow();
OleUninitialize();
}
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