mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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:
|
case VT_DISPATCH:
|
||||||
{
|
{
|
||||||
|
// The following commented-out code crashes IE7:
|
||||||
|
/*
|
||||||
CComPtr<IDispatch> pDispObject( variant->pdispVal );
|
CComPtr<IDispatch> pDispObject( variant->pdispVal );
|
||||||
CComPtr<ITypeInfo> pTypeInfo;
|
CComPtr<ITypeInfo> pTypeInfo;
|
||||||
HRESULT hr = pDispObject->GetTypeInfo( 0, 0, &pTypeInfo );
|
HRESULT hr = pDispObject->GetTypeInfo( 0, 0, &pTypeInfo );
|
||||||
@ -451,6 +453,7 @@ P3D_object* PPInterface::variant_to_p3dobj(COleVariant* variant)
|
|||||||
|
|
||||||
pTypeInfo->ReleaseTypeAttr( pTypeAttr );
|
pTypeInfo->ReleaseTypeAttr( pTypeAttr );
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
return new PPBrowserObject( this, variant->pdispVal );
|
return new PPBrowserObject( this, variant->pdispVal );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user