Module: wine Branch: master Commit: 40aeb9563f1a51431679048ec3e89d09aafca223 URL: http://source.winehq.org/git/wine.git/?a=commit;h=40aeb9563f1a51431679048ec3...
Author: James Hawkins jhawkins@codeweavers.com Date: Wed Sep 24 03:06:00 2008 -0500
oleaut32: Fix a failing test in win95.
---
dlls/oleaut32/tests/olefont.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index 0e5f55f..6774368 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -138,7 +138,9 @@ static void test_QueryInterface(void)
/* Test if QueryInterface increments ref counter for IFONTs */ ret = IFont_AddRef(font); - ok(ret == 3, "IFont_QI expected ref value 3 but instead got %12u\n",ret); + ok(ret == 3 || + broken(ret == 1), /* win95 */ + "IFont_QI expected ref value 3 but instead got %ld\n",ret); IFont_Release(font);
ok(hres == S_OK,"IFont_QI does not return S_OK, but 0x%08x\n", hres);