mshtml: Properly handle GetScheme failure.

This commit is contained in:
Jacek Caban 2012-02-01 13:58:42 +01:00 committed by Alexandre Julliard
parent 43b38e1420
commit 90f7c8f848

View File

@ -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));