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
4038523b
Commit
4038523b
authored
Dec 08, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use ifaces instead of vtbl pointers in BindStatusCallback.
parent
d24e87fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
httprequest.c
dlls/msxml3/httprequest.c
+14
-14
No files found.
dlls/msxml3/httprequest.c
View file @
4038523b
...
...
@@ -105,8 +105,8 @@ static void httprequest_setreadystate(httprequest *This, READYSTATE state)
struct
BindStatusCallback
{
const
IBindStatusCallbackVtbl
*
lpBindStatusCallbackVtbl
;
const
IHttpNegotiateVtbl
*
lpHttpNegotiateVtbl
;
IBindStatusCallback
IBindStatusCallback_iface
;
IHttpNegotiate
IHttpNegotiate_iface
;
LONG
ref
;
IBinding
*
binding
;
...
...
@@ -121,12 +121,12 @@ struct BindStatusCallback
static
inline
BindStatusCallback
*
impl_from_IBindStatusCallback
(
IBindStatusCallback
*
iface
)
{
return
(
BindStatusCallback
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
BindStatusCallback
,
lpBindStatusCallbackVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
BindStatusCallback
,
IBindStatusCallback_iface
);
}
static
inline
BindStatusCallback
*
impl_from_IHttpNegotiate
(
IHttpNegotiate
*
iface
)
{
return
(
BindStatusCallback
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
BindStatusCallback
,
lpHttpNegotiateVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
BindStatusCallback
,
IHttpNegotiate_iface
);
}
void
BindStatusCallback_Detach
(
BindStatusCallback
*
bsc
)
...
...
@@ -135,7 +135,7 @@ void BindStatusCallback_Detach(BindStatusCallback *bsc)
{
if
(
bsc
->
binding
)
IBinding_Abort
(
bsc
->
binding
);
bsc
->
request
=
NULL
;
IBindStatusCallback_Release
(
(
IBindStatusCallback
*
)
bsc
);
IBindStatusCallback_Release
(
&
bsc
->
IBindStatusCallback_iface
);
}
}
...
...
@@ -151,11 +151,11 @@ static HRESULT WINAPI BindStatusCallback_QueryInterface(IBindStatusCallback *ifa
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
)
||
IsEqualGUID
(
&
IID_IBindStatusCallback
,
riid
))
{
*
ppv
=
&
This
->
lpBindStatusCallbackVtbl
;
*
ppv
=
&
This
->
IBindStatusCallback_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHttpNegotiate
,
riid
))
{
*
ppv
=
&
This
->
lpHttpNegotiateVtbl
;
*
ppv
=
&
This
->
IHttpNegotiate_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IServiceProvider
,
riid
)
||
IsEqualGUID
(
&
IID_IBindStatusCallbackEx
,
riid
)
||
...
...
@@ -344,19 +344,19 @@ static HRESULT WINAPI BSCHttpNegotiate_QueryInterface(IHttpNegotiate *iface,
REFIID
riid
,
void
**
ppv
)
{
BindStatusCallback
*
This
=
impl_from_IHttpNegotiate
(
iface
);
return
IBindStatusCallback_QueryInterface
(
(
IBindStatusCallback
*
)
This
,
riid
,
ppv
);
return
IBindStatusCallback_QueryInterface
(
&
This
->
IBindStatusCallback_iface
,
riid
,
ppv
);
}
static
ULONG
WINAPI
BSCHttpNegotiate_AddRef
(
IHttpNegotiate
*
iface
)
{
BindStatusCallback
*
This
=
impl_from_IHttpNegotiate
(
iface
);
return
IBindStatusCallback_AddRef
(
(
IBindStatusCallback
*
)
This
);
return
IBindStatusCallback_AddRef
(
&
This
->
IBindStatusCallback_iface
);
}
static
ULONG
WINAPI
BSCHttpNegotiate_Release
(
IHttpNegotiate
*
iface
)
{
BindStatusCallback
*
This
=
impl_from_IHttpNegotiate
(
iface
);
return
IBindStatusCallback_Release
(
(
IBindStatusCallback
*
)
This
);
return
IBindStatusCallback_Release
(
&
This
->
IBindStatusCallback_iface
);
}
static
HRESULT
WINAPI
BSCHttpNegotiate_BeginningTransaction
(
IHttpNegotiate
*
iface
,
...
...
@@ -433,8 +433,8 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
return
E_OUTOFMEMORY
;
}
bsc
->
lpBindStatusCallback
Vtbl
=
&
BindStatusCallbackVtbl
;
bsc
->
lpHttpNegotiate
Vtbl
=
&
BSCHttpNegotiateVtbl
;
bsc
->
IBindStatusCallback_iface
.
lp
Vtbl
=
&
BindStatusCallbackVtbl
;
bsc
->
IHttpNegotiate_iface
.
lp
Vtbl
=
&
BSCHttpNegotiateVtbl
;
bsc
->
ref
=
1
;
bsc
->
request
=
This
;
bsc
->
binding
=
NULL
;
...
...
@@ -465,7 +465,7 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
FIXME
(
"unsupported body data type %d
\n
"
,
V_VT
(
body
));
}
hr
=
RegisterBindStatusCallback
(
pbc
,
(
IBindStatusCallback
*
)
bsc
,
NULL
,
0
);
hr
=
RegisterBindStatusCallback
(
pbc
,
&
bsc
->
IBindStatusCallback_iface
,
NULL
,
0
);
if
(
hr
==
S_OK
)
{
IMoniker
*
moniker
;
...
...
@@ -484,7 +484,7 @@ static HRESULT BindStatusCallback_create(httprequest* This, BindStatusCallback *
if
(
FAILED
(
hr
))
{
IBindStatusCallback_Release
(
(
IBindStatusCallback
*
)
bsc
);
IBindStatusCallback_Release
(
&
bsc
->
IBindStatusCallback_iface
);
bsc
=
NULL
;
}
...
...
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