Nikolay Sivov : msxml3: Set referer in case with no user headers too.
Alexandre Julliard
julliard at winehq.org
Mon Oct 28 15:13:05 CDT 2013
Module: wine
Branch: master
Commit: 0fc177fe2f06577e9d9657b11cd66856170be99b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0fc177fe2f06577e9d9657b11cd66856170be99b
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 28 17:01:02 2013 +0400
msxml3: Set referer in case with no user headers too.
---
dlls/msxml3/httprequest.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/httprequest.c b/dlls/msxml3/httprequest.c
index c90cc51..3caecad 100644
--- a/dlls/msxml3/httprequest.c
+++ b/dlls/msxml3/httprequest.c
@@ -476,14 +476,18 @@ static HRESULT WINAPI BSCHttpNegotiate_BeginningTransaction(IHttpNegotiate *ifac
if (!list_empty(&This->request->reqheaders))
size += This->request->reqheader_size*sizeof(WCHAR);
- if (!size) return S_OK;
-
if (This->request->base_uri)
{
IUri_GetRawUri(This->request->base_uri, &base_uri);
size += SysStringLen(base_uri)*sizeof(WCHAR) + sizeof(refererW) + sizeof(crlfW);
}
+ if (!size)
+ {
+ SysFreeString(base_uri);
+ return S_OK;
+ }
+
buff = CoTaskMemAlloc(size);
if (!buff)
{
More information about the wine-cvs
mailing list