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
43302910
Commit
43302910
authored
Aug 18, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Moved update_window_doc to on_start_nsrequest and update callback's document if needed.
parent
a14d1425
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
navigate.c
dlls/mshtml/navigate.c
+14
-8
No files found.
dlls/mshtml/navigate.c
View file @
43302910
...
...
@@ -964,7 +964,7 @@ struct nsChannelBSC {
nsProtocolStream
*
nsstream
;
};
static
void
on_start_nsrequest
(
nsChannelBSC
*
This
)
static
HRESULT
on_start_nsrequest
(
nsChannelBSC
*
This
)
{
nsresult
nsres
;
...
...
@@ -974,8 +974,20 @@ static void on_start_nsrequest(nsChannelBSC *This)
nsres
=
nsIStreamListener_OnStartRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
);
if
(
NS_FAILED
(
nsres
))
if
(
NS_FAILED
(
nsres
))
{
FIXME
(
"OnStartRequest failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
if
(
This
->
window
)
{
update_window_doc
(
This
->
window
);
if
(
This
->
window
->
doc
!=
This
->
bsc
.
doc
)
This
->
bsc
.
doc
=
This
->
window
->
doc
;
if
(
This
->
window
->
readystate
!=
READYSTATE_LOADING
)
set_ready_state
(
This
->
window
,
READYSTATE_LOADING
);
}
return
S_OK
;
}
static
void
on_stop_nsrequest
(
nsChannelBSC
*
This
,
HRESULT
result
)
...
...
@@ -1054,12 +1066,6 @@ static HRESULT read_stream_data(nsChannelBSC *This, IStream *stream)
}
on_start_nsrequest
(
This
);
if
(
This
->
window
)
{
update_window_doc
(
This
->
window
);
if
(
This
->
window
->
readystate
!=
READYSTATE_LOADING
)
set_ready_state
(
This
->
window
,
READYSTATE_LOADING
);
}
}
This
->
bsc
.
readed
+=
This
->
nsstream
->
buf_size
;
...
...
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