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
5d9e6455
Commit
5d9e6455
authored
Nov 20, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Reload page in exec_editmode if available.
parent
2702dfff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
olecmd.c
dlls/mshtml/olecmd.c
+24
-5
No files found.
dlls/mshtml/olecmd.c
View file @
5d9e6455
...
@@ -534,8 +534,6 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
...
@@ -534,8 +534,6 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
IMoniker
*
mon
;
IMoniker
*
mon
;
HRESULT
hres
;
HRESULT
hres
;
static
const
WCHAR
wszAboutBlank
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
TRACE
(
"(%p)->(%08x %p %p)
\n
"
,
This
,
cmdexecopt
,
in
,
out
);
TRACE
(
"(%p)->(%08x %p %p)
\n
"
,
This
,
cmdexecopt
,
in
,
out
);
if
(
in
||
out
)
if
(
in
||
out
)
...
@@ -546,9 +544,20 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
...
@@ -546,9 +544,20 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
This
->
usermode
=
EDITMODE
;
This
->
usermode
=
EDITMODE
;
if
(
This
->
mon
)
{
CLSID
clsid
=
IID_NULL
;
hres
=
IMoniker_GetClassID
(
This
->
mon
,
&
clsid
);
if
(
SUCCEEDED
(
hres
))
{
/* We should use IMoniker::Save here */
FIXME
(
"Use CLSID %s
\n
"
,
debugstr_guid
(
&
clsid
));
}
}
if
(
This
->
frame
)
if
(
This
->
frame
)
IOleInPlaceFrame_SetStatusText
(
This
->
frame
,
NULL
);
IOleInPlaceFrame_SetStatusText
(
This
->
frame
,
NULL
);
This
->
readystate
=
READYSTATE_UNINITIALIZED
;
if
(
This
->
client
)
{
if
(
This
->
client
)
{
IOleCommandTarget
*
cmdtrg
;
IOleCommandTarget
*
cmdtrg
;
...
@@ -581,13 +590,23 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
...
@@ -581,13 +590,23 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
if
(
This
->
nscontainer
)
if
(
This
->
nscontainer
)
set_ns_editmode
(
This
->
nscontainer
);
set_ns_editmode
(
This
->
nscontainer
);
hres
=
CreateURLMoniker
(
NULL
,
wszAboutBlank
,
&
mon
);
update_doc
(
This
,
UPDATE_UI
);
if
(
This
->
mon
)
{
/* FIXME: We should find nicer way to do this */
remove_doc_tasks
(
This
);
mon
=
This
->
mon
;
IMoniker_AddRef
(
mon
);
}
else
{
static
const
WCHAR
about_blankW
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
hres
=
CreateURLMoniker
(
NULL
,
about_blankW
,
&
mon
);
if
(
FAILED
(
hres
))
{
if
(
FAILED
(
hres
))
{
FIXME
(
"CreateURLMoniker failed: %08x
\n
"
,
hres
);
FIXME
(
"CreateURLMoniker failed: %08x
\n
"
,
hres
);
return
hres
;
return
hres
;
}
}
}
update_doc
(
This
,
UPDATE_UI
);
hres
=
IPersistMoniker_Load
(
PERSISTMON
(
This
),
TRUE
,
mon
,
NULL
,
0
);
hres
=
IPersistMoniker_Load
(
PERSISTMON
(
This
),
TRUE
,
mon
,
NULL
,
0
);
IMoniker_Release
(
mon
);
IMoniker_Release
(
mon
);
...
...
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