Commit 32f47b06 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

MSVCRT___RTDynamicCast: Reject a NULL cppobj.

parent bdcc0e36
......@@ -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");
......
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