Nikolay Sivov : oledb32/tests: Simplify recount check.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed May 18 10:51:12 CDT 2016
Module: wine
Branch: master
Commit: dc8f504b51663770cbf2d8ea5246762bd005bfce
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dc8f504b51663770cbf2d8ea5246762bd005bfce
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue May 17 21:22:12 2016 +0300
oledb32/tests: Simplify recount check.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/oledb32/tests/database.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/oledb32/tests/database.c b/dlls/oledb32/tests/database.c
index 483454e..fdf4220 100644
--- a/dlls/oledb32/tests/database.c
+++ b/dlls/oledb32/tests/database.c
@@ -42,9 +42,10 @@ static WCHAR initstring_default[] = {'D','a','t','a',' ','S','o','u','r','c','e'
#define EXPECT_REF(obj,ref) _expect_ref((IUnknown*)obj, ref, __LINE__)
static void _expect_ref(IUnknown* obj, ULONG ref, int line)
{
- ULONG rc = IUnknown_AddRef(obj);
- IUnknown_Release(obj);
- ok_(__FILE__,line)(rc-1 == ref, "expected refcount %d, got %d\n", ref, rc-1);
+ ULONG rc;
+ IUnknown_AddRef(obj);
+ rc = IUnknown_Release(obj);
+ ok_(__FILE__, line)(rc == ref, "expected refcount %d, got %d\n", ref, rc);
}
static void test_GetDataSource(WCHAR *initstring)
More information about the wine-cvs
mailing list