MSVCRT___RTDynamicCast: Reject a NULL cppobj.

This commit is contained in:
Uwe Bonnes 2003-10-06 21:10:44 +00:00 committed by Alexandre Julliard
parent bdcc0e3619
commit 32f47b0648
1 changed files with 4 additions and 2 deletions

View File

@ -1150,11 +1150,13 @@ void* MSVCRT___RTDynamicCast(type_info *cppobj, int unknown,
type_info *src, type_info *dst,
int do_throw)
{
const rtti_object_locator *obj_locator = RTTI_GetObjectLocator(cppobj);
const rtti_object_locator *obj_locator;
/* Note: cppobj _isn't_ a type_info, we use that struct for its vtable ptr */
TRACE("(%p,%d,%p,%p,%d)\n", cppobj, unknown, src, dst, do_throw);
if (!cppobj)
return 0;
obj_locator= RTTI_GetObjectLocator(cppobj);
if (unknown)
FIXME("Unknown parameter is non-zero: please report\n");