msvcrt: Fix an RTTI test Failure on Vista.

This commit is contained in:
Jon Griffiths 2008-05-27 09:25:36 -07:00 committed by Alexandre Julliard
parent 76f2a0f333
commit da412d4507
1 changed files with 5 additions and 1 deletions

View File

@ -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);