mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
mshtml: Properly handle GetScheme failure.
This commit is contained in:
parent
43b38e1420
commit
90f7c8f848
1 changed files with 1 additions and 2 deletions
|
@ -1941,8 +1941,7 @@ HRESULT super_navigate(HTMLWindow *window, IUri *uri, const WCHAR *headers, BYTE
|
|||
prepare_for_binding(&window->doc_obj->basedoc, mon, TRUE);
|
||||
|
||||
hres = IUri_GetScheme(uri, &scheme);
|
||||
|
||||
if(scheme != URL_SCHEME_JAVASCRIPT) {
|
||||
if(SUCCEEDED(hres) && scheme != URL_SCHEME_JAVASCRIPT) {
|
||||
navigate_task_t *task;
|
||||
|
||||
task = heap_alloc(sizeof(*task));
|
||||
|
|
Loading…
Reference in a new issue