mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Fixed for windowless controls attempting to get a DC from the ActiveX plugin
This commit is contained in:
parent
71918bb721
commit
b5ac61bef4
@ -731,7 +731,13 @@ HRESULT STDMETHODCALLTYPE CControlSite::GetDC(/* [in] */ LPCRECT pRect, /* [in]
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
// Can't do nested painting
|
||||
if (grfFlags & OLEDC_NODRAW)
|
||||
{
|
||||
*phDC = m_hDCBuffer;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
// Can't do nested painting
|
||||
if (m_hDCBuffer != NULL)
|
||||
{
|
||||
return E_UNEXPECTED;
|
||||
|
Loading…
Reference in New Issue
Block a user