Commit da412d45 authored by Jon Griffiths's avatar Jon Griffiths Committed by Alexandre Julliard

msvcrt: Fix an RTTI test Failure on Vista.

parent 76f2a0f3
......@@ -817,7 +817,11 @@ static void test_rtti(void)
bti = p__RTtypeid(&b);
casted = p__RTDynamicCast(&b, 0, NULL, ti, 0);
ok (casted == (void*)&b, "failed cast from bad_cast to exception\n");
if (casted)
{
/* New versions do not allow this conversion due to compiler changes */
ok (casted == (void*)&b, "failed cast from bad_typeid to exception\n");
}
/* dynamic_cast down */
casted = p__RTDynamicCast(&e, 0, NULL, bti, 0);
......
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