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
2211b6e5
Commit
2211b6e5
authored
Jun 12, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Jun 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Add some error handling to hlink_frame_navigate.
parent
846bc878
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
navigate.c
dlls/mshtml/navigate.c
+22
-10
No files found.
dlls/mshtml/navigate.c
View file @
2211b6e5
...
...
@@ -744,6 +744,7 @@ void hlink_frame_navigate(HTMLDocument *doc, IHlinkFrame *hlink_frame,
IBindCtx
*
bindctx
;
IMoniker
*
mon
;
IHlink
*
hlink
;
HRESULT
hr
;
callback
=
create_bscallback
(
NULL
);
...
...
@@ -754,24 +755,35 @@ void hlink_frame_navigate(HTMLDocument *doc, IHlinkFrame *hlink_frame,
debugstr_an
(
callback
->
post_data
,
callback
->
post_data_len
));
}
CreateAsyncBindCtx
(
0
,
STATUSCLB
(
callback
),
NULL
,
&
bindctx
);
hr
=
CreateAsyncBindCtx
(
0
,
STATUSCLB
(
callback
),
NULL
,
&
bindctx
);
if
(
FAILED
(
hr
))
{
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
return
;
}
hlink
=
Hlink_Create
();
if
(
!
hlink
)
{
IBindCtx_Release
(
bindctx
);
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
return
;
}
CreateURLMoniker
(
NULL
,
uri
,
&
mon
);
IHlink_SetMonikerReference
(
hlink
,
0
,
mon
,
NULL
);
hr
=
CreateURLMoniker
(
NULL
,
uri
,
&
mon
);
if
(
SUCCEEDED
(
hr
))
{
IHlink_SetMonikerReference
(
hlink
,
0
,
mon
,
NULL
);
if
(
hlnf
&
HLNF_OPENINNEWWINDOW
)
{
static
const
WCHAR
wszBlank
[]
=
{
'_'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
IHlink_SetTargetFrameName
(
hlink
,
wszBlank
);
/* FIXME */
}
if
(
hlnf
&
HLNF_OPENINNEWWINDOW
)
{
static
const
WCHAR
wszBlank
[]
=
{
'_'
,
'b'
,
'l'
,
'a'
,
'n'
,
'k'
,
0
};
IHlink_SetTargetFrameName
(
hlink
,
wszBlank
);
/* FIXME */
}
IHlinkFrame_Navigate
(
hlink_frame
,
hlnf
,
bindctx
,
STATUSCLB
(
callback
),
hlink
);
IHlinkFrame_Navigate
(
hlink_frame
,
hlnf
,
bindctx
,
STATUSCLB
(
callback
),
hlink
);
IMoniker_Release
(
mon
);
}
IBindCtx_Release
(
bindctx
);
IBindStatusCallback_Release
(
STATUSCLB
(
callback
));
IMoniker_Release
(
mon
);
}
HRESULT
start_binding
(
BSCallback
*
bscallback
)
...
...
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