Module: wine Branch: master Commit: 654b0eeaeacbc2264cb4c2077c21de4f77ba03db URL: http://source.winehq.org/git/wine.git/?a=commit;h=654b0eeaeacbc2264cb4c2077c...
Author: Hans Leidekker hans@codeweavers.com Date: Mon Nov 21 12:32:50 2011 +0100
winhttp: Reverse the order of arguments passed to Invoke.
---
dlls/winhttp/session.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c index f0d9974..a55fa21 100644 --- a/dlls/winhttp/session.c +++ b/dlls/winhttp/session.c @@ -1661,9 +1661,9 @@ static BOOL run_script( const BSTR script, const WCHAR *url, WINHTTP_PROXY_INFO if (hr != S_OK) goto done;
V_VT( &args[0] ) = VT_BSTR; - V_BSTR( &args[0] ) = SysAllocString( url ); + V_BSTR( &args[0] ) = hostname; V_VT( &args[1] ) = VT_BSTR; - V_BSTR( &args[1] ) = hostname; + V_BSTR( &args[1] ) = SysAllocString( url );
params.rgvarg = args; params.rgdispidNamedArgs = NULL;