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
18423e8d
Commit
18423e8d
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: Load data from moniker in IPersistStreamInit::InitNew.
parent
34944c89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
22 deletions
+2
-22
persist.c
dlls/mshtml/persist.c
+2
-22
No files found.
dlls/mshtml/persist.c
View file @
18423e8d
...
...
@@ -683,44 +683,24 @@ static HRESULT WINAPI PersistStreamInit_InitNew(IPersistStreamInit *iface)
{
HTMLDocument
*
This
=
PERSTRINIT_THIS
(
iface
);
IMoniker
*
mon
;
HGLOBAL
body
;
LPSTREAM
stream
;
HRESULT
hres
;
static
const
WCHAR
about_blankW
[]
=
{
'a'
,
'b'
,
'o'
,
'u'
,
't'
,
':'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
static
const
WCHAR
html_bodyW
[]
=
{
'<'
,
'H'
,
'T'
,
'M'
,
'L'
,
'>'
,
'<'
,
'/'
,
'H'
,
'T'
,
'M'
,
'L'
,
'>'
,
0
};
TRACE
(
"(%p)
\n
"
,
This
);
body
=
GlobalAlloc
(
0
,
sizeof
(
html_bodyW
));
if
(
!
body
)
return
E_OUTOFMEMORY
;
memcpy
(
body
,
html_bodyW
,
sizeof
(
html_bodyW
));
hres
=
CreateURLMoniker
(
NULL
,
about_blankW
,
&
mon
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateURLMoniker failed: %08x
\n
"
,
hres
);
GlobalFree
(
body
);
return
hres
;
}
hres
=
set_moniker
(
This
,
mon
,
NULL
,
FALSE
);
IMoniker_Release
(
mon
);
if
(
FAILED
(
hres
))
{
GlobalFree
(
body
);
return
hres
;
}
hres
=
CreateStreamOnHGlobal
(
body
,
TRUE
,
&
stream
);
if
(
FAILED
(
hres
))
{
GlobalFree
(
body
);
if
(
FAILED
(
hres
))
return
hres
;
}
hres
=
channelbsc_load_stream
(
This
->
window
->
bscallback
,
stream
);
IStream_Release
(
stream
);
return
hres
;
return
start_binding
(
This
->
window
,
NULL
,
(
BSCallback
*
)
This
->
window
->
bscallback
,
NULL
);
}
#undef PERSTRINIT_THIS
...
...
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