Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
04305e7f
Commit
04305e7f
authored
Mar 19, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Mar 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Use the standard COM aggregation struct field names.
parent
c000cbaf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
extserv.c
dlls/hlink/extserv.c
+20
-20
No files found.
dlls/hlink/extserv.c
View file @
04305e7f
...
...
@@ -24,13 +24,13 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
hlink
);
typedef
struct
{
IUnknown
IUnknown_i
face
;
IUnknown
IUnknown_i
nner
;
IAuthenticate
IAuthenticate_iface
;
IHttpNegotiate
IHttpNegotiate_iface
;
IExtensionServices
IExtensionServices_iface
;
IUnknown
*
outer_unk
;
LONG
ref
;
IUnknown
*
outer
;
HWND
hwnd
;
LPWSTR
username
;
...
...
@@ -40,7 +40,7 @@ typedef struct {
static
inline
ExtensionService
*
impl_from_IUnknown
(
IUnknown
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ExtensionService
,
IUnknown_i
face
);
return
CONTAINING_RECORD
(
iface
,
ExtensionService
,
IUnknown_i
nner
);
}
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
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
IUnknown_i
face
;
*
ppv
=
&
This
->
IUnknown_i
nner
;
}
else
if
(
IsEqualGUID
(
&
IID_IAuthenticate
,
riid
))
{
TRACE
(
"(%p)->(IID_IAuthenticate %p)
\n
"
,
This
,
ppv
);
*
ppv
=
&
This
->
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
)
{
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
)
{
ExtensionService
*
This
=
impl_from_IAuthenticate
(
iface
);
return
IUnknown_AddRef
(
This
->
outer
);
return
IUnknown_AddRef
(
This
->
outer
_unk
);
}
static
ULONG
WINAPI
Authenticate_Release
(
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
,
...
...
@@ -160,19 +160,19 @@ static inline ExtensionService *impl_from_IHttpNegotiate(IHttpNegotiate *iface)
static
HRESULT
WINAPI
HttpNegotiate_QueryInterface
(
IHttpNegotiate
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
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
)
{
ExtensionService
*
This
=
impl_from_IHttpNegotiate
(
iface
);
return
IUnknown_AddRef
(
This
->
outer
);
return
IUnknown_AddRef
(
This
->
outer
_unk
);
}
static
ULONG
WINAPI
HttpNegotiate_Release
(
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
,
...
...
@@ -218,19 +218,19 @@ static inline ExtensionService *impl_from_IExtensionServices(IExtensionServices
static
HRESULT
WINAPI
ExtServ_QueryInterface
(
IExtensionServices
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
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
)
{
ExtensionService
*
This
=
impl_from_IExtensionServices
(
iface
);
return
IUnknown_AddRef
(
This
->
outer
);
return
IUnknown_AddRef
(
This
->
outer
_unk
);
}
static
ULONG
WINAPI
ExtServ_Release
(
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
)
...
...
@@ -311,7 +311,7 @@ HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR pwzAdditionalHeaders,
ret
=
heap_alloc
(
sizeof
(
*
ret
));
ret
->
IUnknown_i
face
.
lpVtbl
=
&
ExtServUnkVtbl
;
ret
->
IUnknown_i
nner
.
lpVtbl
=
&
ExtServUnkVtbl
;
ret
->
IAuthenticate_iface
.
lpVtbl
=
&
AuthenticateVtbl
;
ret
->
IHttpNegotiate_iface
.
lpVtbl
=
&
HttpNegotiateVtbl
;
ret
->
IExtensionServices_iface
.
lpVtbl
=
&
ExtServVtbl
;
...
...
@@ -325,14 +325,14 @@ HRESULT WINAPI HlinkCreateExtensionServices(LPCWSTR pwzAdditionalHeaders,
ExtServ_ImplSetAdditionalHeaders
(
ret
,
pwzAdditionalHeaders
);
if
(
!
punkOuter
)
{
ret
->
outer
=
&
ret
->
IUnknown_iface
;
hres
=
IUnknown_QueryInterface
(
&
ret
->
IUnknown_i
face
,
riid
,
ppv
);
IUnknown_Release
(
&
ret
->
IUnknown_i
face
);
ret
->
outer
_unk
=
&
ret
->
IUnknown_inner
;
hres
=
IUnknown_QueryInterface
(
&
ret
->
IUnknown_i
nner
,
riid
,
ppv
);
IUnknown_Release
(
&
ret
->
IUnknown_i
nner
);
}
else
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
ret
->
outer
=
punkOuter
;
*
ppv
=
&
ret
->
IUnknown_i
face
;
ret
->
outer
_unk
=
punkOuter
;
*
ppv
=
&
ret
->
IUnknown_i
nner
;
}
else
{
IUnknown_Release
(
&
ret
->
IUnknown_i
face
);
IUnknown_Release
(
&
ret
->
IUnknown_i
nner
);
hres
=
E_INVALIDARG
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment