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
aa760c8b
Commit
aa760c8b
authored
Aug 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Store IMoniker in BSCallback.
parent
f0ca85f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
9 deletions
+20
-9
mshtml_private.h
dlls/mshtml/mshtml_private.h
+5
-2
navigate.c
dlls/mshtml/navigate.c
+13
-5
persist.c
dlls/mshtml/persist.c
+2
-2
No files found.
dlls/mshtml/mshtml_private.h
View file @
aa760c8b
...
...
@@ -172,6 +172,8 @@ struct BSCallback {
nsIStreamListener
*
nslistener
;
nsISupports
*
nscontext
;
IMoniker
*
mon
;
nsProtocolStream
*
nsstream
;
};
...
...
@@ -308,8 +310,9 @@ void nsAString_Finish(nsAString*);
nsIInputStream
*
create_nsstream
(
const
char
*
,
PRInt32
);
BSCallback
*
create_bscallback
(
HTMLDocument
*
,
LPCOLESTR
);
HRESULT
start_binding
(
BSCallback
*
,
IMoniker
*
);
BSCallback
*
create_bscallback
(
HTMLDocument
*
,
IMoniker
*
);
HRESULT
start_binding
(
BSCallback
*
);
void
create_hidden_hwnd
(
HTMLDocument
*
);
IHlink
*
Hlink_Create
(
void
);
IHTMLSelectionObject
*
HTMLSelectionObject_Create
(
nsISelection
*
);
...
...
dlls/mshtml/navigate.c
View file @
aa760c8b
...
...
@@ -131,7 +131,7 @@ static nsresult NSAPI nsInputStream_ReadSegments(nsIInputStream *iface,
PRUint32
written
=
0
;
nsresult
nsres
;
FIXM
E
(
"(%p)->(%p %p %ld %p)
\n
"
,
This
,
aWriter
,
aClousure
,
aCount
,
_retval
);
TRAC
E
(
"(%p)->(%p %p %ld %p)
\n
"
,
This
,
aWriter
,
aClousure
,
aCount
,
_retval
);
if
(
!
This
->
buf_size
)
return
S_OK
;
...
...
@@ -246,6 +246,8 @@ static ULONG WINAPI BindStatusCallback_Release(IBindStatusCallback *iface)
nsISupports_Release
(
This
->
nscontext
);
if
(
This
->
nsstream
)
nsIInputStream_Release
(
NSINSTREAM
(
This
->
nsstream
));
if
(
This
->
mon
)
IMoniker_Release
(
This
->
mon
);
mshtml_free
(
This
->
headers
);
mshtml_free
(
This
);
}
...
...
@@ -564,7 +566,7 @@ static const IServiceProviderVtbl ServiceProviderVtbl = {
BSCServiceProvider_QueryService
};
BSCallback
*
create_bscallback
(
HTMLDocument
*
doc
,
LPCOLESTR
url
)
BSCallback
*
create_bscallback
(
HTMLDocument
*
doc
,
IMoniker
*
mon
)
{
BSCallback
*
ret
=
mshtml_alloc
(
sizeof
(
BSCallback
));
...
...
@@ -582,6 +584,10 @@ BSCallback *create_bscallback(HTMLDocument *doc, LPCOLESTR url)
ret
->
nscontext
=
NULL
;
ret
->
nsstream
=
NULL
;
if
(
mon
)
IMoniker_AddRef
(
mon
);
ret
->
mon
=
mon
;
return
ret
;
}
...
...
@@ -663,7 +669,7 @@ void hlink_frame_navigate(HTMLDocument *doc, IHlinkFrame *hlink_frame,
IMoniker
*
mon
;
IHlink
*
hlink
;
callback
=
create_bscallback
(
doc
,
uri
);
callback
=
create_bscallback
(
doc
,
NULL
);
if
(
post_data_stream
)
{
parse_post_data
(
post_data_stream
,
&
callback
->
headers
,
&
callback
->
post_data
,
...
...
@@ -692,7 +698,7 @@ void hlink_frame_navigate(HTMLDocument *doc, IHlinkFrame *hlink_frame,
}
HRESULT
start_binding
(
BSCallback
*
bscallback
,
IMoniker
*
mon
)
HRESULT
start_binding
(
BSCallback
*
bscallback
)
{
IStream
*
str
=
NULL
;
IBindCtx
*
bctx
;
...
...
@@ -704,7 +710,7 @@ HRESULT start_binding(BSCallback *bscallback, IMoniker *mon)
return
hres
;
}
hres
=
IMoniker_BindToStorage
(
mon
,
bctx
,
NULL
,
&
IID_IStream
,
(
void
**
)
&
str
);
hres
=
IMoniker_BindToStorage
(
bscallback
->
mon
,
bctx
,
NULL
,
&
IID_IStream
,
(
void
**
)
&
str
);
IBindCtx_Release
(
bctx
);
if
(
FAILED
(
hres
))
{
WARN
(
"BindToStorage failed: %08lx
\n
"
,
hres
);
...
...
@@ -714,5 +720,7 @@ HRESULT start_binding(BSCallback *bscallback, IMoniker *mon)
if
(
str
)
IStream_Release
(
str
);
IMoniker_Release
(
bscallback
->
mon
);
bscallback
->
mon
=
NULL
;
return
S_OK
;
}
dlls/mshtml/persist.c
View file @
aa760c8b
...
...
@@ -215,7 +215,7 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
}
}
bscallback
=
create_bscallback
(
This
,
url
);
bscallback
=
create_bscallback
(
This
,
pimkName
);
if
(
This
->
nscontainer
)
{
nsIInputStream
*
post_data_stream
=
get_post_data_stream
(
pibc
);
...
...
@@ -249,7 +249,7 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
if
(
pibc
)
FIXME
(
"not supported pibc
\n
"
);
hres
=
start_binding
(
bscallback
,
pimkName
);
hres
=
start_binding
(
bscallback
);
IBindStatusCallback_Release
(
STATUSCLB
(
bscallback
));
CoTaskMemFree
(
url
);
...
...
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