Commit 06e0220e authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

mshtml: Avoid null pointer dereference in OmHistory_get_length (cppcheck).

parent 3f245899
......@@ -674,7 +674,7 @@ static HRESULT WINAPI OmHistory_get_length(IOmHistory *iface, short *p)
if(This->window && This->window->base.outer_window)
browser = This->window->base.outer_window->browser;
*p = browser->doc->travel_log
*p = browser && browser->doc->travel_log
? ITravelLog_CountEntries(browser->doc->travel_log, browser->doc->browser_service)
: 0;
return S_OK;
......
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