Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
5fd62154
Commit
5fd62154
authored
14 years ago
by
Michael Stefaniuc
Committed by
Alexandre Julliard
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
msxml3: COM cleanup for the IBindStatusCallback iface.
parent
81c91c43
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/msxml3/bsc.c
+6
-6
6 additions, 6 deletions
dlls/msxml3/bsc.c
dlls/msxml3/xmldoc.c
+3
-3
3 additions, 3 deletions
dlls/msxml3/xmldoc.c
with
9 additions
and
9 deletions
dlls/msxml3/bsc.c
+
6
−
6
View file @
5fd62154
...
...
@@ -39,7 +39,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msxml
);
struct
bsc_t
{
const
struct
IBindStatusCallback
Vtbl
*
lpVtbl
;
IBindStatusCallback
IBindStatusCallback
_iface
;
LONG
ref
;
...
...
@@ -52,7 +52,7 @@ struct bsc_t {
static
inline
bsc_t
*
impl_from_IBindStatusCallback
(
IBindStatusCallback
*
iface
)
{
return
(
bsc_t
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
bsc_t
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
bsc_t
,
IBindStatusCallback_iface
);
}
static
HRESULT
WINAPI
bsc_QueryInterface
(
...
...
@@ -269,14 +269,14 @@ HRESULT bind_url(LPCWSTR url, HRESULT (*onDataAvailable)(void*,char*,DWORD), voi
bsc
=
heap_alloc
(
sizeof
(
bsc_t
));
bsc
->
lpVtbl
=
&
bsc_vtbl
;
bsc
->
IBindStatusCallback_iface
.
lpVtbl
=
&
bsc_vtbl
;
bsc
->
ref
=
1
;
bsc
->
obj
=
obj
;
bsc
->
onDataAvailable
=
onDataAvailable
;
bsc
->
binding
=
NULL
;
bsc
->
memstream
=
NULL
;
hr
=
RegisterBindStatusCallback
(
pbc
,
(
IBindStatusCallback
*
)
&
bsc
->
lpVtbl
,
NULL
,
0
);
hr
=
RegisterBindStatusCallback
(
pbc
,
&
bsc
->
IBindStatusCallback
_iface
,
NULL
,
0
);
if
(
SUCCEEDED
(
hr
))
{
IMoniker
*
moniker
;
...
...
@@ -295,7 +295,7 @@ HRESULT bind_url(LPCWSTR url, HRESULT (*onDataAvailable)(void*,char*,DWORD), voi
if
(
FAILED
(
hr
))
{
IBindStatusCallback_Release
(
(
IBindStatusCallback
*
)
&
bsc
->
lpVtbl
);
IBindStatusCallback_Release
(
&
bsc
->
IBindStatusCallback
_iface
);
bsc
=
NULL
;
}
...
...
@@ -309,5 +309,5 @@ void detach_bsc(bsc_t *bsc)
IBinding_Abort
(
bsc
->
binding
);
bsc
->
obj
=
NULL
;
IBindStatusCallback_Release
(
(
IBindStatusCallback
*
)
&
bsc
->
lpVtbl
);
IBindStatusCallback_Release
(
&
bsc
->
IBindStatusCallback
_iface
);
}
This diff is collapsed.
Click to expand it.
dlls/msxml3/xmldoc.c
+
3
−
3
View file @
5fd62154
...
...
@@ -237,7 +237,7 @@ static HRESULT WINAPI xmldoc_get_URL(IXMLDocument *iface, BSTR *p)
}
typedef
struct
{
const
struct
IBindStatusCallback
Vtbl
*
lpVtbl
;
IBindStatusCallback
IBindStatusCallback
_iface
;
}
bsc
;
static
HRESULT
WINAPI
bsc_QueryInterface
(
...
...
@@ -352,7 +352,7 @@ static const struct IBindStatusCallbackVtbl bsc_vtbl =
bsc_OnObjectAvailable
};
static
bsc
xmldoc_bsc
=
{
&
bsc_vtbl
};
static
bsc
xmldoc_bsc
=
{
{
&
bsc_vtbl
}
};
static
HRESULT
WINAPI
xmldoc_put_URL
(
IXMLDocument
*
iface
,
BSTR
p
)
{
...
...
@@ -392,7 +392,7 @@ static HRESULT WINAPI xmldoc_put_URL(IXMLDocument *iface, BSTR p)
if
(
FAILED
(
hr
))
return
hr
;
CreateAsyncBindCtx
(
0
,
(
IBindStatusCallback
*
)
&
xmldoc_bsc
,
0
,
&
bctx
);
CreateAsyncBindCtx
(
0
,
&
xmldoc_bsc
.
IBindStatusCallback
_iface
,
0
,
&
bctx
);
hr
=
IMoniker_BindToStorage
(
moniker
,
bctx
,
NULL
,
&
IID_IStream
,
(
LPVOID
*
)
&
stream
);
IBindCtx_Release
(
bctx
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment