Nikolay Sivov : comctl32/tests: Remove not so useful macro.

Alexandre Julliard julliard at winehq.org
Tue Jan 23 16:09:50 CST 2018


Module: wine
Branch: master
Commit: 056ce0e85a0efca07c42ff8f08a513301d74f684
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=056ce0e85a0efca07c42ff8f08a513301d74f684

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Jan 23 14:44:19 2018 +0300

comctl32/tests: Remove not so useful macro.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/comctl32/tests/v6util.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/dlls/comctl32/tests/v6util.h b/dlls/comctl32/tests/v6util.h
index afdc12c..b78290a 100644
--- a/dlls/comctl32/tests/v6util.h
+++ b/dlls/comctl32/tests/v6util.h
@@ -20,8 +20,6 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define expect(expected, got) ok(got == expected, "Expected %d, got %d\n", expected, got)
-
 #ifdef __i386__
 #define ARCH "x86"
 #elif defined __x86_64__
@@ -106,7 +104,7 @@ static BOOL load_v6_module(ULONG_PTR *pcookie, HANDLE *hCtx)
     ok(*hCtx != 0, "Expected context handle\n");
 
     ret = ActivateActCtx(*hCtx, pcookie);
-    expect(TRUE, ret);
+    ok(ret, "Failed to activate context, error %d.\n", GetLastError());
 
     if (!ret)
     {
@@ -124,5 +122,4 @@ static BOOL load_v6_module(ULONG_PTR *pcookie, HANDLE *hCtx)
     return ret;
 }
 
-#undef expect
 #undef ARCH




More information about the wine-cvs mailing list