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
553eae88
Commit
553eae88
authored
Sep 26, 2013
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Call set_current_mon in channelbsc_load_stream.
parent
8683b6de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
binding.h
dlls/mshtml/binding.h
+1
-1
navigate.c
dlls/mshtml/navigate.c
+3
-1
persist.c
dlls/mshtml/persist.c
+6
-4
No files found.
dlls/mshtml/binding.h
View file @
553eae88
...
...
@@ -118,7 +118,7 @@ HRESULT navigate_new_window(HTMLOuterWindow*,IUri*,const WCHAR*,IHTMLWindow2**)
HRESULT
navigate_url
(
HTMLOuterWindow
*
,
const
WCHAR
*
,
IUri
*
,
DWORD
)
DECLSPEC_HIDDEN
;
HRESULT
create_channelbsc
(
IMoniker
*
,
const
WCHAR
*
,
BYTE
*
,
DWORD
,
BOOL
,
nsChannelBSC
**
)
DECLSPEC_HIDDEN
;
HRESULT
channelbsc_load_stream
(
HTMLInnerWindow
*
,
IStream
*
)
DECLSPEC_HIDDEN
;
HRESULT
channelbsc_load_stream
(
HTMLInnerWindow
*
,
I
Moniker
*
,
I
Stream
*
)
DECLSPEC_HIDDEN
;
void
channelbsc_set_channel
(
nsChannelBSC
*
,
nsChannel
*
,
nsIStreamListener
*
,
nsISupports
*
)
DECLSPEC_HIDDEN
;
IUri
*
nsuri_get_uri
(
nsWineURI
*
)
DECLSPEC_HIDDEN
;
...
...
dlls/mshtml/navigate.c
View file @
553eae88
...
...
@@ -1953,7 +1953,7 @@ void abort_window_bindings(HTMLInnerWindow *window)
}
}
HRESULT
channelbsc_load_stream
(
HTMLInnerWindow
*
pending_window
,
IStream
*
stream
)
HRESULT
channelbsc_load_stream
(
HTMLInnerWindow
*
pending_window
,
I
Moniker
*
mon
,
I
Stream
*
stream
)
{
nsChannelBSC
*
bscallback
=
pending_window
->
bscallback
;
HRESULT
hres
=
S_OK
;
...
...
@@ -1967,6 +1967,8 @@ HRESULT channelbsc_load_stream(HTMLInnerWindow *pending_window, IStream *stream)
if
(
!
bscallback
->
nschannel
->
content_type
)
return
E_OUTOFMEMORY
;
set_current_mon
(
pending_window
->
base
.
outer_window
,
mon
,
0
);
bscallback
->
bsc
.
window
=
pending_window
;
if
(
stream
)
hres
=
read_stream_data
(
bscallback
,
stream
);
...
...
dlls/mshtml/persist.c
View file @
553eae88
...
...
@@ -844,11 +844,12 @@ static HRESULT WINAPI PersistStreamInit_Load(IPersistStreamInit *iface, LPSTREAM
prepare_for_binding
(
This
,
mon
,
FALSE
);
hres
=
set_moniker
(
This
->
window
,
mon
,
NULL
,
NULL
,
NULL
,
TRUE
);
IMoniker_Release
(
mon
);
if
(
FAILED
(
hres
))
return
hres
;
return
channelbsc_load_stream
(
This
->
window
->
pending_window
,
pStm
);
hres
=
channelbsc_load_stream
(
This
->
window
->
pending_window
,
mon
,
pStm
);
IMoniker_Release
(
mon
);
return
hres
;
}
static
HRESULT
WINAPI
PersistStreamInit_Save
(
IPersistStreamInit
*
iface
,
LPSTREAM
pStm
,
...
...
@@ -901,11 +902,12 @@ static HRESULT WINAPI PersistStreamInit_InitNew(IPersistStreamInit *iface)
prepare_for_binding
(
This
,
mon
,
FALSE
);
hres
=
set_moniker
(
This
->
window
,
mon
,
NULL
,
NULL
,
NULL
,
FALSE
);
IMoniker_Release
(
mon
);
if
(
FAILED
(
hres
))
return
hres
;
return
channelbsc_load_stream
(
This
->
window
->
pending_window
,
NULL
);
hres
=
channelbsc_load_stream
(
This
->
window
->
pending_window
,
mon
,
NULL
);
IMoniker_Release
(
mon
);
return
hres
;
}
static
const
IPersistStreamInitVtbl
PersistStreamInitVtbl
=
{
...
...
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