Commit 04305e7f authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

hlink: Use the standard COM aggregation struct field names.

parent c000cbaf
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
WINE_DEFAULT_DEBUG_CHANNEL(hlink); WINE_DEFAULT_DEBUG_CHANNEL(hlink);
typedef struct { typedef struct {
IUnknown IUnknown_iface; IUnknown IUnknown_inner;
IAuthenticate IAuthenticate_iface; IAuthenticate IAuthenticate_iface;
IHttpNegotiate IHttpNegotiate_iface; IHttpNegotiate IHttpNegotiate_iface;
IExtensionServices IExtensionServices_iface; IExtensionServices IExtensionServices_iface;
IUnknown *outer_unk;
LONG ref; LONG ref;
IUnknown *outer;
HWND hwnd; HWND hwnd;
LPWSTR username; LPWSTR username;
...@@ -40,7 +40,7 @@ typedef struct { ...@@ -40,7 +40,7 @@ typedef struct {
static inline ExtensionService *impl_from_IUnknown(IUnknown *iface) static inline ExtensionService *impl_from_IUnknown(IUnknown *iface)
{ {
return CONTAINING_RECORD(iface, ExtensionService, IUnknown_iface); return CONTAINING_RECORD(iface, ExtensionService, IUnknown_inner);
} }
static HRESULT WINAPI ExtServUnk_QueryInterface(IUnknown *iface, REFIID riid, void **ppv) static HRESULT WINAPI ExtServUnk_QueryInterface(IUnknown *iface, REFIID riid, void **ppv)
...@@ -51,7 +51,7 @@ static HRESULT WINAPI ExtServUnk_QueryInterface(IUnknown *iface, REFIID riid, vo ...@@ -51,7 +51,7 @@ static HRESULT WINAPI ExtServUnk_QueryInterface(IUnknown *iface, REFIID riid, vo
if(IsEqualGUID(&IID_IUnknown, riid)) { if(IsEqualGUID(&IID_IUnknown, riid)) {
TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv); TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv);
*ppv = &This->IUnknown_iface; *ppv = &This->IUnknown_inner;
}else if(IsEqualGUID(&IID_IAuthenticate, riid)) { }else if(IsEqualGUID(&IID_IAuthenticate, riid)) {
TRACE("(%p)->(IID_IAuthenticate %p)\n", This, ppv); TRACE("(%p)->(IID_IAuthenticate %p)\n", This, ppv);
*ppv = &This->IAuthenticate_iface; *ppv = &This->IAuthenticate_iface;
...@@ -113,19 +113,19 @@ static inline ExtensionService *impl_from_IAuthenticate(IAuthenticate *iface) ...@@ -113,19 +113,19 @@ static inline ExtensionService *impl_from_IAuthenticate(IAuthenticate *iface)
static HRESULT WINAPI Authenticate_QueryInterface(IAuthenticate *iface, REFIID riid, void **ppv) static HRESULT WINAPI Authenticate_QueryInterface(IAuthenticate *iface, REFIID riid, void **ppv)
{ {
ExtensionService *This = impl_from_IAuthenticate(iface); ExtensionService *This = impl_from_IAuthenticate(iface);
return IUnknown_QueryInterface(This->outer, riid, ppv); return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
} }
static ULONG WINAPI Authenticate_AddRef(IAuthenticate *iface) static ULONG WINAPI Authenticate_AddRef(IAuthenticate *iface)
{ {
ExtensionService *This = impl_from_IAuthenticate(iface); ExtensionService *This = impl_from_IAuthenticate(iface);
return IUnknown_AddRef(This->outer); return IUnknown_AddRef(This->outer_unk);
} }
static ULONG WINAPI Authenticate_Release(IAuthenticate *iface) static ULONG WINAPI Authenticate_Release(IAuthenticate *iface)
{ {
ExtensionService *This = impl_from_IAuthenticate(iface); ExtensionService *This = impl_from_IAuthenticate(iface);
return IUnknown_Release(This->outer); return IUnknown_Release(This->outer_unk);
} }
static HRESULT WINAPI Authenticate_Authenticate(IAuthenticate *iface, static HRESULT WINAPI Authenticate_Authenticate(IAuthenticate *iface,
...@@ -160,19 +160,19 @@ static inline ExtensionService *impl_from_IHttpNegotiate(IHttpNegotiate *iface) ...@@ -160,19 +160,19 @@ static inline ExtensionService *impl_from_IHttpNegotiate(IHttpNegotiate *iface)
static HRESULT WINAPI HttpNegotiate_QueryInterface(IHttpNegotiate *iface, REFIID riid, void **ppv) static HRESULT WINAPI HttpNegotiate_QueryInterface(IHttpNegotiate *iface, REFIID riid, void **ppv)
{ {
ExtensionService *This = impl_from_IHttpNegotiate(iface); ExtensionService *This = impl_from_IHttpNegotiate(iface);
return IUnknown_QueryInterface(This->outer, riid, ppv); return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
} }
static ULONG WINAPI HttpNegotiate_AddRef(IHttpNegotiate *iface) static ULONG WINAPI HttpNegotiate_AddRef(IHttpNegotiate *iface)
{ {
ExtensionService *This = impl_from_IHttpNegotiate(iface); ExtensionService *This = impl_from_IHttpNegotiate(iface);
return IUnknown_AddRef(This->outer); return IUnknown_AddRef(This->outer_unk);
} }
static ULONG WINAPI HttpNegotiate_Release(IHttpNegotiate *iface) static ULONG WINAPI HttpNegotiate_Release(IHttpNegotiate *iface)
{ {
ExtensionService *This = impl_from_IHttpNegotiate(iface); ExtensionService *This = impl_from_IHttpNegotiate(iface);
return IUnknown_Release(This->outer); return IUnknown_Release(This->outer_unk);
} }
static HRESULT WINAPI HttpNegotiate_BeginningTransaction(IHttpNegotiate *iface, static HRESULT WINAPI HttpNegotiate_BeginningTransaction(IHttpNegotiate *iface,
...@@ -218,19 +218,19 @@ static inline ExtensionService *impl_from_IExtensionServices(IExtensionServices ...@@ -218,19 +218,19 @@ static inline ExtensionService *impl_from_IExtensionServices(IExtensionServices
static HRESULT WINAPI ExtServ_QueryInterface(IExtensionServices *iface, REFIID riid, void **ppv) static HRESULT WINAPI ExtServ_QueryInterface(IExtensionServices *iface, REFIID riid, void **ppv)
{ {
ExtensionService *This = impl_from_IExtensionServices(iface); ExtensionService *This = impl_from_IExtensionServices(iface);
return IUnknown_QueryInterface(This->outer, riid, ppv); return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
} }
static ULONG WINAPI ExtServ_AddRef(IExtensionServices *iface) static ULONG WINAPI ExtServ_AddRef(IExtensionServices *iface)
{ {
ExtensionService *This = impl_from_IExtensionServices(iface); ExtensionService *This = impl_from_IExtensionServices(iface);
return IUnknown_AddRef(This->outer); return IUnknown_AddRef(This->outer_unk);
} }
static ULONG WINAPI ExtServ_Release(IExtensionServices *iface) static ULONG WINAPI ExtServ_Release(IExtensionServices *iface)
{ {
ExtensionService *This = impl_from_IExtensionServices(iface); ExtensionService *This = impl_from_IExtensionServices(iface);
return IUnknown_Release(This->outer); return IUnknown_Release(This->outer_unk);
} }
static HRESULT ExtServ_ImplSetAdditionalHeaders(ExtensionService* This, LPCWSTR pwzAdditionalHeaders) static HRESULT ExtServ_ImplSetAdditionalHeaders(ExtensionService* This, LPCWSTR pwzAdditionalHeaders)
...@@ -311,7 +311,7 @@ HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR pwzAdditionalHeaders, ...@@ -311,7 +311,7 @@ HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR pwzAdditionalHeaders,
ret = heap_alloc(sizeof(*ret)); ret = heap_alloc(sizeof(*ret));
ret->IUnknown_iface.lpVtbl = &ExtServUnkVtbl; ret->IUnknown_inner.lpVtbl = &ExtServUnkVtbl;
ret->IAuthenticate_iface.lpVtbl = &AuthenticateVtbl; ret->IAuthenticate_iface.lpVtbl = &AuthenticateVtbl;
ret->IHttpNegotiate_iface.lpVtbl = &HttpNegotiateVtbl; ret->IHttpNegotiate_iface.lpVtbl = &HttpNegotiateVtbl;
ret->IExtensionServices_iface.lpVtbl = &ExtServVtbl; ret->IExtensionServices_iface.lpVtbl = &ExtServVtbl;
...@@ -325,14 +325,14 @@ HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR pwzAdditionalHeaders, ...@@ -325,14 +325,14 @@ HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR pwzAdditionalHeaders,
ExtServ_ImplSetAdditionalHeaders(ret, pwzAdditionalHeaders); ExtServ_ImplSetAdditionalHeaders(ret, pwzAdditionalHeaders);
if(!punkOuter) { if(!punkOuter) {
ret->outer = &ret->IUnknown_iface; ret->outer_unk = &ret->IUnknown_inner;
hres = IUnknown_QueryInterface(&ret->IUnknown_iface, riid, ppv); hres = IUnknown_QueryInterface(&ret->IUnknown_inner, riid, ppv);
IUnknown_Release(&ret->IUnknown_iface); IUnknown_Release(&ret->IUnknown_inner);
}else if(IsEqualGUID(&IID_IUnknown, riid)) { }else if(IsEqualGUID(&IID_IUnknown, riid)) {
ret->outer = punkOuter; ret->outer_unk = punkOuter;
*ppv = &ret->IUnknown_iface; *ppv = &ret->IUnknown_inner;
}else { }else {
IUnknown_Release(&ret->IUnknown_iface); IUnknown_Release(&ret->IUnknown_inner);
hres = E_INVALIDARG; hres = E_INVALIDARG;
} }
......
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