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
ee8c855f
Commit
ee8c855f
authored
Jun 03, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added begining binding code in IPersistMoniker::Load.
parent
f1d2e376
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
navigate.c
dlls/mshtml/navigate.c
+25
-0
persist.c
dlls/mshtml/persist.c
+8
-1
No files found.
dlls/mshtml/navigate.c
View file @
ee8c855f
...
...
@@ -491,3 +491,28 @@ void hlink_frame_navigate(HTMLDocument *doc, IHlinkFrame *hlink_frame,
IMoniker_Release
(
mon
);
}
HRESULT
start_binding
(
BSCallback
*
bscallback
,
IMoniker
*
mon
)
{
IStream
*
str
=
NULL
;
IBindCtx
*
bctx
;
HRESULT
hres
;
hres
=
CreateAsyncBindCtx
(
0
,
STATUSCLB
(
bscallback
),
NULL
,
&
bctx
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateAsyncBindCtx failed: %08lx
\n
"
,
hres
);
return
hres
;
}
hres
=
IMoniker_BindToStorage
(
mon
,
bctx
,
NULL
,
&
IID_IStream
,
(
void
**
)
&
str
);
IBindCtx_Release
(
bctx
);
if
(
FAILED
(
hres
))
{
WARN
(
"BindToStorage failed: %08lx
\n
"
,
hres
);
return
hres
;
}
if
(
str
)
IStream_Release
(
str
);
return
S_OK
;
}
dlls/mshtml/persist.c
View file @
ee8c855f
...
...
@@ -228,7 +228,12 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
if
(
post_data_stream
)
nsIInputStream_Release
(
post_data_stream
);
if
(
!
bscallback
->
nschannel
)
ERR
(
"bscallback->nschannel == NULL
\n
"
);
if
(
NS_SUCCEEDED
(
nsres
))
{
/* FIXME: don't return here (URL Moniker needs to be good enough) */
IBindStatusCallback_Release
(
STATUSCLB
(
bscallback
));
CoTaskMemFree
(
url
);
return
S_OK
;
...
...
@@ -244,10 +249,12 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
if
(
pibc
)
FIXME
(
"not supported pibc
\n
"
);
hres
=
start_binding
(
bscallback
,
pimkName
);
IBindStatusCallback_Release
(
STATUSCLB
(
bscallback
));
CoTaskMemFree
(
url
);
return
S_OK
;
return
hres
;
}
static
HRESULT
WINAPI
PersistMoniker_Save
(
IPersistMoniker
*
iface
,
IMoniker
*
pimkName
,
...
...
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