Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c58ca131
Commit
c58ca131
authored
Jan 10, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Handle fClearDirty flag in IPersistStreamInit::Save.
parent
7de847c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
editor.c
dlls/mshtml/editor.c
+3
-3
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-1
persist.c
dlls/mshtml/persist.c
+5
-2
No files found.
dlls/mshtml/editor.c
View file @
c58ca131
...
...
@@ -99,11 +99,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static
const
WCHAR
wszFont
[]
=
{
'f'
,
'o'
,
'n'
,
't'
,
0
};
static
const
WCHAR
wszSize
[]
=
{
's'
,
'i'
,
'z'
,
'e'
,
0
};
static
void
set_dirty
(
HTMLDocument
*
This
,
VARIANT_BOOL
dirty
)
void
set_dirty
(
HTMLDocument
*
This
,
VARIANT_BOOL
dirty
)
{
nsresult
nsres
;
if
(
!
This
->
nscontainer
||
!
This
->
nscontainer
->
editor
)
if
(
This
->
usermode
!=
EDITMODE
||
!
This
->
nscontainer
||
!
This
->
nscontainer
->
editor
)
return
;
if
(
dirty
)
{
...
...
@@ -976,7 +976,7 @@ static HRESULT exec_setdirty(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
{
TRACE
(
"(%p)->(%08x %p %p)
\n
"
,
This
,
cmdexecopt
,
in
,
out
);
if
(
!
in
||
This
->
usermode
!=
EDITMODE
)
if
(
!
in
)
return
S_OK
;
if
(
V_VT
(
in
)
==
VT_BOOL
)
...
...
dlls/mshtml/mshtml_private.h
View file @
c58ca131
...
...
@@ -490,8 +490,9 @@ void handle_edit_event(HTMLDocument*,nsIDOMEvent*);
HRESULT
editor_exec_copy
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_cut
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_paste
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
void
handle_edit_load
(
HTMLDocument
*
This
);
void
handle_edit_load
(
HTMLDocument
*
);
HRESULT
editor_is_dirty
(
HTMLDocument
*
);
void
set_dirty
(
HTMLDocument
*
,
VARIANT_BOOL
);
extern
DWORD
mshtml_tls
;
...
...
dlls/mshtml/persist.c
View file @
c58ca131
...
...
@@ -705,18 +705,21 @@ static HRESULT WINAPI PersistStreamInit_Save(IPersistStreamInit *iface, LPSTREAM
DWORD
len
,
written
=
0
;
HRESULT
hres
;
WARN
(
"(%p)->(%p %x) needs more work
\n
"
,
This
,
pStm
,
fClearDirty
);
TRACE
(
"(%p)->(%p %x)
\n
"
,
This
,
pStm
,
fClearDirty
);
hres
=
get_doc_string
(
This
,
&
str
,
&
len
);
if
(
FAILED
(
hres
))
return
hres
;
hres
=
IStream_Write
(
pStm
,
str
,
len
,
&
written
);
if
(
FAILED
(
hres
))
FIXME
(
"Write failed: %08x
\n
"
,
hres
);
heap_free
(
str
);
if
(
fClearDirty
)
set_dirty
(
This
,
VARIANT_FALSE
);
return
S_OK
;
}
...
...
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