mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
avoid ie7 crash
This commit is contained in:
parent
1584feba64
commit
f2e3cef83b
@ -441,6 +441,8 @@ P3D_object* PPInterface::variant_to_p3dobj(COleVariant* variant)
|
||||
}
|
||||
case VT_DISPATCH:
|
||||
{
|
||||
// The following commented-out code crashes IE7:
|
||||
/*
|
||||
CComPtr<IDispatch> pDispObject( variant->pdispVal );
|
||||
CComPtr<ITypeInfo> pTypeInfo;
|
||||
HRESULT hr = pDispObject->GetTypeInfo( 0, 0, &pTypeInfo );
|
||||
@ -451,6 +453,7 @@ P3D_object* PPInterface::variant_to_p3dobj(COleVariant* variant)
|
||||
|
||||
pTypeInfo->ReleaseTypeAttr( pTypeAttr );
|
||||
}
|
||||
*/
|
||||
return new PPBrowserObject( this, variant->pdispVal );
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user