Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
56e231a4
Commit
56e231a4
authored
Jul 08, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Store IBinding in bsc.
parent
0f76b418
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
domdoc.c
dlls/msxml3/domdoc.c
+23
-1
No files found.
dlls/msxml3/domdoc.c
View file @
56e231a4
...
...
@@ -53,6 +53,8 @@ typedef struct {
const
struct
IBindStatusCallbackVtbl
*
lpVtbl
;
LONG
ref
;
IBinding
*
binding
;
}
bsc_t
;
static
inline
bsc_t
*
impl_from_IBindStatusCallback
(
IBindStatusCallback
*
iface
)
...
...
@@ -96,8 +98,11 @@ static ULONG WINAPI bsc_Release(
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
if
(
!
ref
)
{
if
(
This
->
binding
)
IBinding_Release
(
This
->
binding
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
}
...
...
@@ -107,6 +112,13 @@ static HRESULT WINAPI bsc_OnStartBinding(
DWORD
dwReserved
,
IBinding
*
pib
)
{
bsc_t
*
This
=
impl_from_IBindStatusCallback
(
iface
);
TRACE
(
"(%p)->(%x %p)
\n
"
,
This
,
dwReserved
,
pib
);
This
->
binding
=
pib
;
IBindStatusCallback_AddRef
(
pib
);
return
S_OK
;
}
...
...
@@ -139,6 +151,15 @@ static HRESULT WINAPI bsc_OnStopBinding(
HRESULT
hresult
,
LPCWSTR
szError
)
{
bsc_t
*
This
=
impl_from_IBindStatusCallback
(
iface
);
TRACE
(
"(%p)->(%08x %s)
\n
"
,
This
,
hresult
,
debugstr_w
(
szError
));
if
(
This
->
binding
)
{
IBinding_Release
(
This
->
binding
);
This
->
binding
=
NULL
;
}
return
S_OK
;
}
...
...
@@ -191,6 +212,7 @@ static bsc_t *create_bsc(void)
bsc
->
lpVtbl
=
&
bsc_vtbl
;
bsc
->
ref
=
1
;
bsc
->
binding
=
NULL
;
return
bsc
;
}
...
...
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