Module: wine Branch: master Commit: 6f97e1a30ce18fe874a3369b852e648118e9916e URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f97e1a30ce18fe874a3369b85...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Fri Oct 2 10:24:58 2015 +0800
winhttp/tests: Add another test for IWinHttpRequest_Invoke.
This test intentionally uses fallback path of IWinHttpRequest_Invoke implementation that passes the call to typelib marshaller.
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru
---
dlls/winhttp/tests/winhttp.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/dlls/winhttp/tests/winhttp.c b/dlls/winhttp/tests/winhttp.c index 381a9c4..e221809 100644 --- a/dlls/winhttp/tests/winhttp.c +++ b/dlls/winhttp/tests/winhttp.c @@ -3773,6 +3773,16 @@ todo_wine ok(hr == DISP_E_PARAMNOTFOUND, "error %#x\n", hr);
SysFreeString(utf8); + + params.cArgs = 1; + V_VT(&arg[0]) = VT_I4; + V_I4(&arg[0]) = AutoLogonPolicy_Never; + VariantInit(&ret); + hr = IWinHttpRequest_Invoke(request, DISPID_HTTPREQUEST_SETAUTOLOGONPOLICY, &IID_NULL, 0, + DISPATCH_METHOD, ¶ms, &ret, NULL, NULL); +todo_wine + ok(hr == S_OK, "error %#x\n", hr); + IWinHttpRequest_Release(request);
CoUninitialize();