title: IWebBrowser2->get_Document returns S_FALSE
body: <pre><code>IWebBrowser2* browser;
  CComPtr&lt;IDispatch&gt; disp;
  HRESULT hr = browser-&gt;get_Document(&amp;disp);
  </code></pre>
  
  <p>In above code hr values after call to get_Document is S_FALSE but when I try to see error informaiton by using GetLastError it says error no =0.</p>
  
  <p>This code is working fine on windows 7 but giving problems in windows 8.1</p>
  
  <p>any suggestions?</p>