msxml3: Remove redundant refcount field.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-07-05 22:28:00 +03:00 committed by Alexandre Julliard
parent 3784524265
commit 01c63bdf76
1 changed files with 2 additions and 4 deletions

View File

@ -114,7 +114,6 @@ typedef struct
{ {
httprequest req; httprequest req;
IServerXMLHTTPRequest IServerXMLHTTPRequest_iface; IServerXMLHTTPRequest IServerXMLHTTPRequest_iface;
LONG ref;
} serverhttp; } serverhttp;
static inline httprequest *impl_from_IXMLHTTPRequest( IXMLHTTPRequest *iface ) static inline httprequest *impl_from_IXMLHTTPRequest( IXMLHTTPRequest *iface )
@ -1737,7 +1736,7 @@ static HRESULT WINAPI ServerXMLHTTPRequest_QueryInterface(IServerXMLHTTPRequest
static ULONG WINAPI ServerXMLHTTPRequest_AddRef(IServerXMLHTTPRequest *iface) static ULONG WINAPI ServerXMLHTTPRequest_AddRef(IServerXMLHTTPRequest *iface)
{ {
serverhttp *This = impl_from_IServerXMLHTTPRequest( iface ); serverhttp *This = impl_from_IServerXMLHTTPRequest( iface );
ULONG ref = InterlockedIncrement( &This->ref ); ULONG ref = InterlockedIncrement( &This->req.ref );
TRACE("(%p)->(%u)\n", This, ref ); TRACE("(%p)->(%u)\n", This, ref );
return ref; return ref;
} }
@ -1745,7 +1744,7 @@ static ULONG WINAPI ServerXMLHTTPRequest_AddRef(IServerXMLHTTPRequest *iface)
static ULONG WINAPI ServerXMLHTTPRequest_Release(IServerXMLHTTPRequest *iface) static ULONG WINAPI ServerXMLHTTPRequest_Release(IServerXMLHTTPRequest *iface)
{ {
serverhttp *This = impl_from_IServerXMLHTTPRequest( iface ); serverhttp *This = impl_from_IServerXMLHTTPRequest( iface );
ULONG ref = InterlockedDecrement( &This->ref ); ULONG ref = InterlockedDecrement( &This->req.ref );
TRACE("(%p)->(%u)\n", This, ref ); TRACE("(%p)->(%u)\n", This, ref );
@ -2041,7 +2040,6 @@ HRESULT ServerXMLHTTP_create(void **obj)
init_httprequest(&req->req); init_httprequest(&req->req);
req->IServerXMLHTTPRequest_iface.lpVtbl = &ServerXMLHTTPRequestVtbl; req->IServerXMLHTTPRequest_iface.lpVtbl = &ServerXMLHTTPRequestVtbl;
req->ref = 1;
*obj = &req->IServerXMLHTTPRequest_iface; *obj = &req->IServerXMLHTTPRequest_iface;