Commit 90f7c8f8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Properly handle GetScheme failure.

parent 43b38e14
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment