Module: wine Branch: master Commit: da412d4507b9376d26586657472755d515144218 URL: http://source.winehq.org/git/wine.git/?a=commit;h=da412d4507b9376d2658665747...
Author: Jon Griffiths jon_p_griffiths@yahoo.com Date: Tue May 27 09:25:36 2008 -0700
msvcrt: Fix an RTTI test Failure on Vista.
---
dlls/msvcrt/tests/cpp.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/tests/cpp.c b/dlls/msvcrt/tests/cpp.c index 96dcfbb..f642bcd 100644 --- a/dlls/msvcrt/tests/cpp.c +++ b/dlls/msvcrt/tests/cpp.c @@ -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);