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
8dd7b396
Commit
8dd7b396
authored
Mar 03, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Correctly handle document with already loaded moniker in set_moniker.
parent
4ae97b16
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
persist.c
dlls/mshtml/persist.c
+17
-10
No files found.
dlls/mshtml/persist.c
View file @
8dd7b396
...
...
@@ -171,18 +171,13 @@ static void set_downloading_proc(task_t *_task)
static
HRESULT
set_moniker
(
HTMLDocument
*
This
,
IMoniker
*
mon
,
IBindCtx
*
pibc
,
BOOL
set_download
)
{
download_proc_task_t
*
download_task
;
nsChannelBSC
*
bscallback
;
LPOLESTR
url
=
NULL
;
docobj_task_t
*
task
;
download_proc_task_t
*
download_task
;
nsWineURI
*
nsuri
;
LPOLESTR
url
;
HRESULT
hres
;
set_ready_state
(
This
->
window
,
READYSTATE_LOADING
);
update_doc
(
This
,
UPDATE_TITLE
);
HTMLDocument_LockContainer
(
This
->
doc_obj
,
TRUE
);
hres
=
IMoniker_GetDisplayName
(
mon
,
pibc
,
NULL
,
&
url
);
if
(
FAILED
(
hres
))
{
WARN
(
"GetDiaplayName failed: %08x
\n
"
,
hres
);
...
...
@@ -191,11 +186,8 @@ static HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, BO
TRACE
(
"got url: %s
\n
"
,
debugstr_w
(
url
));
set_current_mon
(
This
->
window
,
mon
);
if
(
This
->
doc_obj
->
client
)
{
VARIANT
silent
,
offline
;
IOleCommandTarget
*
cmdtrg
=
NULL
;
hres
=
get_client_disp_property
(
This
->
doc_obj
->
client
,
DISPID_AMBIENT_SILENT
,
&
silent
);
if
(
SUCCEEDED
(
hres
))
{
...
...
@@ -213,6 +205,19 @@ static HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, BO
else
if
(
V_BOOL
(
&
silent
))
FIXME
(
"offline == true
\n
"
);
}
}
if
(
This
->
window
->
mon
)
{
update_doc
(
This
,
UPDATE_TITLE
|
UPDATE_UI
);
}
else
{
update_doc
(
This
,
UPDATE_TITLE
);
set_current_mon
(
This
->
window
,
mon
);
}
set_ready_state
(
This
->
window
,
READYSTATE_LOADING
);
if
(
This
->
doc_obj
->
client
)
{
IOleCommandTarget
*
cmdtrg
=
NULL
;
hres
=
IOleClientSite_QueryInterface
(
This
->
doc_obj
->
client
,
&
IID_IOleCommandTarget
,
(
void
**
)
&
cmdtrg
);
...
...
@@ -244,6 +249,8 @@ static HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, BO
if
(
FAILED
(
hres
))
return
hres
;
HTMLDocument_LockContainer
(
This
->
doc_obj
,
TRUE
);
if
(
This
->
doc_obj
->
frame
)
{
task
=
heap_alloc
(
sizeof
(
docobj_task_t
));
task
->
doc
=
This
->
doc_obj
;
...
...
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