Only return SHDOCVW_ClassFactory if asked for CLSID_WebBrowser.

This commit is contained in:
Michael Jung 2005-10-31 15:44:06 +00:00 committed by Alexandre Julliard
parent 0fb5729693
commit 6ac5686cb5
1 changed files with 2 additions and 1 deletions

View File

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