Commit 6ac5686c authored by Michael Jung's avatar Michael Jung Committed by Alexandre Julliard

Only return SHDOCVW_ClassFactory if asked for CLSID_WebBrowser.

parent 0fb57296
......@@ -480,7 +480,8 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
return r;
}
if (IsEqualGUID(&IID_IClassFactory, riid))
if (IsEqualCLSID(&CLSID_WebBrowser, rclsid) &&
IsEqualIID(&IID_IClassFactory, riid))
{
/* Pass back our shdocvw class factory */
*ppv = (LPVOID)&SHDOCVW_ClassFactory;
......
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