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
cb9527ac
Commit
cb9527ac
authored
Jul 26, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make sure we have associated listener before calling OnStopRequest.
parent
262db807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
navigate.c
dlls/mshtml/navigate.c
+10
-7
No files found.
dlls/mshtml/navigate.c
View file @
cb9527ac
...
...
@@ -249,6 +249,12 @@ static void add_nsrequest(BSCallback *This)
}
}
static
void
on_stop_nsrequest
(
BSCallback
*
This
)
{
if
(
This
->
nslistener
)
nsIStreamListener_OnStopRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
,
NS_OK
);
}
#define STATUSCLB_THIS(iface) DEFINE_THIS(BSCallback, BindStatusCallback, iface)
static
HRESULT
WINAPI
BindStatusCallback_QueryInterface
(
IBindStatusCallback
*
iface
,
...
...
@@ -391,10 +397,9 @@ static HRESULT WINAPI BindStatusCallback_OnStopBinding(IBindStatusCallback *ifac
This
->
binding
=
NULL
;
}
if
(
This
->
nslistener
)
{
nsIStreamListener_OnStopRequest
(
This
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
This
->
nschannel
),
This
->
nscontext
,
NS_OK
);
on_stop_nsrequest
(
This
);
if
(
This
->
nslistener
)
{
if
(
This
->
nschannel
->
load_group
)
{
nsresult
nsres
;
...
...
@@ -796,8 +801,7 @@ HRESULT start_binding(BSCallback *bscallback)
hres
=
CreateAsyncBindCtx
(
0
,
STATUSCLB
(
bscallback
),
NULL
,
&
bctx
);
if
(
FAILED
(
hres
))
{
WARN
(
"CreateAsyncBindCtx failed: %08x
\n
"
,
hres
);
nsIStreamListener_OnStopRequest
(
bscallback
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
bscallback
->
nschannel
),
bscallback
->
nscontext
,
NS_OK
);
on_stop_nsrequest
(
bscallback
);
return
hres
;
}
...
...
@@ -805,8 +809,7 @@ HRESULT start_binding(BSCallback *bscallback)
IBindCtx_Release
(
bctx
);
if
(
FAILED
(
hres
))
{
WARN
(
"BindToStorage failed: %08x
\n
"
,
hres
);
nsIStreamListener_OnStopRequest
(
bscallback
->
nslistener
,
(
nsIRequest
*
)
NSCHANNEL
(
bscallback
->
nschannel
),
bscallback
->
nscontext
,
NS_OK
);
on_stop_nsrequest
(
bscallback
);
return
hres
;
}
...
...
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