Module: wine Branch: master Commit: d932fefb6115c0f56c79917739451b14fa4a1c75 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d932fefb6115c0f56c79917739...
Author: James Hawkins jhawkins@codeweavers.com Date: Mon Jun 30 23:55:37 2008 -0500
oleaut32: Fix a test that fails on all platforms up to and including win2k.
---
dlls/oleaut32/tests/olefont.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c index cbf85e1..9f96fee 100644 --- a/dlls/oleaut32/tests/olefont.c +++ b/dlls/oleaut32/tests/olefont.c @@ -769,8 +769,9 @@ static void test_AddRefHfont(void)
/* Decrement reference for destroyed hfnt1 */ hres = IFont_ReleaseHfont(ifnt2,hfnt1); - ok(hres == S_OK, - "IFont_AddRefHfont: (Release ref) Expected S_OK but got 0x%08x\n", + ok(hres == S_OK || + hres == S_FALSE, /* <= win2k */ + "IFont_AddRefHfont: (Release ref) Expected S_OK or S_FALSE but got 0x%08x\n", hres);
/* Shows that releasing all IFONT's does clear the HFONT cache. */