diff --git a/dlls/shdocvw/tests/webbrowser.c b/dlls/shdocvw/tests/webbrowser.c index f3963731c8b..17189fc1284 100644 --- a/dlls/shdocvw/tests/webbrowser.c +++ b/dlls/shdocvw/tests/webbrowser.c @@ -1350,6 +1350,9 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, { *ppv = NULL; + if(!winetest_interactive) + return E_NOINTERFACE; + if (IsEqualGUID(&SID_STopLevelBrowser, guidService)) trace("Service SID_STopLevelBrowser\n"); else if (IsEqualGUID(&SID_SEditCommandTarget, guidService))