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
92443dca
Commit
92443dca
authored
Nov 08, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IPersistHistory::SaveHistory implementation.
parent
99c34aa9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
persist.c
dlls/mshtml/persist.c
+23
-2
No files found.
dlls/mshtml/persist.c
View file @
92443dca
...
...
@@ -943,8 +943,29 @@ static HRESULT WINAPI PersistHistory_LoadHistory(IPersistHistory *iface, IStream
static
HRESULT
WINAPI
PersistHistory_SaveHistory
(
IPersistHistory
*
iface
,
IStream
*
pStream
)
{
HTMLDocument
*
This
=
impl_from_IPersistHistory
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pStream
);
return
E_NOTIMPL
;
ULONG
len
,
written
;
BSTR
display_uri
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pStream
);
if
(
!
This
->
window
||
!
This
->
window
->
uri
)
{
FIXME
(
"No current URI
\n
"
);
return
E_FAIL
;
}
/* NOTE: The format we store is *not* compatible with native MSHTML. We currently
* store only URI of the page (as a length followed by a string) */
hres
=
IUri_GetDisplayUri
(
This
->
window
->
uri
,
&
display_uri
);
if
(
FAILED
(
hres
))
return
hres
;
len
=
SysStringLen
(
display_uri
);
hres
=
IStream_Write
(
pStream
,
&
len
,
sizeof
(
len
),
&
written
);
if
(
SUCCEEDED
(
hres
))
hres
=
IStream_Write
(
pStream
,
display_uri
,
len
*
sizeof
(
WCHAR
),
&
written
);
SysFreeString
(
display_uri
);
return
hres
;
}
static
HRESULT
WINAPI
PersistHistory_SetPositionCookie
(
IPersistHistory
*
iface
,
DWORD
dwPositioncookie
)
...
...
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