Commit 01c63bdf authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Remove redundant refcount field.

parent 37845242
...@@ -114,7 +114,6 @@ typedef struct ...@@ -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 ...@@ -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) ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment