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
17e6d75e
Commit
17e6d75e
authored
Jun 16, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Call on_start_nsrequest synchronously in async_stop_request is no data was read before.
parent
5ba1f867
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
navigate.c
dlls/mshtml/navigate.c
+7
-5
No files found.
dlls/mshtml/navigate.c
View file @
17e6d75e
...
@@ -689,6 +689,8 @@ HRESULT start_binding(HTMLWindow *window, HTMLDocumentNode *doc, BSCallback *bsc
...
@@ -689,6 +689,8 @@ HRESULT start_binding(HTMLWindow *window, HTMLDocumentNode *doc, BSCallback *bsc
IStream
*
str
=
NULL
;
IStream
*
str
=
NULL
;
HRESULT
hres
;
HRESULT
hres
;
TRACE
(
"(%p %p %p %p)
\n
"
,
window
,
doc
,
bscallback
,
bctx
);
bscallback
->
doc
=
doc
;
bscallback
->
doc
=
doc
;
/* NOTE: IE7 calls IsSystemMoniker here*/
/* NOTE: IE7 calls IsSystemMoniker here*/
...
@@ -1001,11 +1003,6 @@ static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result)
...
@@ -1001,11 +1003,6 @@ static void on_stop_nsrequest(nsChannelBSC *This, HRESULT result)
request_result
=
NS_ERROR_FAILURE
;
request_result
=
NS_ERROR_FAILURE
;
}
}
if
(
!
This
->
bsc
.
readed
&&
SUCCEEDED
(
result
))
{
TRACE
(
"No data read! Calling OnStartRequest
\n
"
);
on_start_nsrequest
(
This
);
}
if
(
This
->
nslistener
)
{
if
(
This
->
nslistener
)
{
nsres
=
nsIStreamListener_OnStopRequest
(
This
->
nslistener
,
nsres
=
nsIStreamListener_OnStopRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
This
->
nscontext
,
(
nsIRequest
*
)
&
This
->
nschannel
->
nsIHttpChannel_iface
,
This
->
nscontext
,
...
@@ -1270,6 +1267,11 @@ static HRESULT async_stop_request(nsChannelBSC *This)
...
@@ -1270,6 +1267,11 @@ static HRESULT async_stop_request(nsChannelBSC *This)
{
{
stop_request_task_t
*
task
;
stop_request_task_t
*
task
;
if
(
!
This
->
bsc
.
readed
)
{
TRACE
(
"No data read, calling OnStartRequest
\n
"
);
on_start_nsrequest
(
This
);
}
task
=
heap_alloc
(
sizeof
(
*
task
));
task
=
heap_alloc
(
sizeof
(
*
task
));
if
(
!
task
)
if
(
!
task
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
...
...
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