Commit b5c02b21 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

oledb32/tests: Add PromptNew interactive test.

parent 6e986bbd
......@@ -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);
......
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