comdlg32: Return success from IFileDialog2::AddPlace.
This commit is contained in:
parent
3fc57e7b49
commit
4270a8a4dc
|
@ -2554,7 +2554,7 @@ static HRESULT WINAPI IFileDialog2_fnAddPlace(IFileDialog2 *iface, IShellItem *p
|
|||
{
|
||||
FileDialogImpl *This = impl_from_IFileDialog2(iface);
|
||||
FIXME("stub - %p (%p, %d)\n", This, psi, fdap);
|
||||
return E_NOTIMPL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI IFileDialog2_fnSetDefaultExtension(IFileDialog2 *iface, LPCWSTR pszDefaultExtension)
|
||||
|
|
|
@ -778,22 +778,19 @@ static void test_basics(void)
|
|||
IFileSaveDialog_AddPlace(pfsd, NULL, 0);
|
||||
}
|
||||
|
||||
todo_wine
|
||||
{
|
||||
hr = IFileOpenDialog_AddPlace(pfod, psidesktop, FDAP_TOP + 1);
|
||||
ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
|
||||
todo_wine ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
|
||||
hr = IFileOpenDialog_AddPlace(pfod, psidesktop, FDAP_BOTTOM);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
hr = IFileOpenDialog_AddPlace(pfod, psidesktop, FDAP_TOP);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
|
||||
hr = IFileSaveDialog_AddPlace(pfsd, psidesktop, FDAP_TOP + 1);
|
||||
ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
|
||||
todo_wine ok(hr == E_INVALIDARG, "got 0x%08x\n", hr);
|
||||
hr = IFileSaveDialog_AddPlace(pfsd, psidesktop, FDAP_BOTTOM);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
hr = IFileSaveDialog_AddPlace(pfsd, psidesktop, FDAP_TOP);
|
||||
ok(hr == S_OK, "got 0x%08x\n", hr);
|
||||
}
|
||||
|
||||
/* SetFileName */
|
||||
hr = IFileOpenDialog_SetFileName(pfod, NULL);
|
||||
|
|
Loading…
Reference in New Issue