oledb32/tests: Add PromptNew interactive test.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6e986bbd81
commit
b5c02b217e
|
@ -940,6 +940,26 @@ static void test_dslocator(void)
|
|||
hr = IDataSourceLocator_QueryInterface(dslocator, &IID_IRpcOptions, (void **)&opts);
|
||||
ok(hr == E_NOINTERFACE, "got %08x\n", hr);
|
||||
|
||||
if (winetest_interactive)
|
||||
{
|
||||
IDispatch *disp = NULL;
|
||||
|
||||
hr = IDataSourceLocator_PromptNew(dslocator, NULL);
|
||||
ok(hr == E_INVALIDARG, "got %08x\n", hr);
|
||||
|
||||
hr = IDataSourceLocator_PromptNew(dslocator, &disp);
|
||||
if (hr == S_OK)
|
||||
{
|
||||
ok(disp != NULL, "got %08x\n", hr);
|
||||
IDispatch_Release(disp);
|
||||
}
|
||||
else
|
||||
{
|
||||
ok(hr == S_FALSE, "got %08x\n", hr);
|
||||
ok(!disp, "got %08x\n", hr);
|
||||
}
|
||||
}
|
||||
|
||||
IDataInitialize_Release(datainit2);
|
||||
IDataInitialize_Release(datainit);
|
||||
|
||||
|
|
Loading…
Reference in New Issue