Author: tkreuzer Date: Mon Apr 23 10:56:45 2012 New Revision: 56394
URL: http://svn.reactos.org/svn/reactos?rev=56394&view=rev Log: [GDI32_APITEST] Fix build
Modified: trunk/rostests/apitests/gdi32/GetRandomRgn.c trunk/rostests/apitests/gdi32/PatBlt.c
Modified: trunk/rostests/apitests/gdi32/GetRandomRgn.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32/GetRandomRg... ============================================================================== --- trunk/rostests/apitests/gdi32/GetRandomRgn.c [iso-8859-1] (original) +++ trunk/rostests/apitests/gdi32/GetRandomRgn.c [iso-8859-1] Mon Apr 23 10:56:45 2012 @@ -17,11 +17,11 @@
#define ok_int(x, exp) \ ok((x) == (exp), "Failed test in line %d: value %s expected 0x%x, got 0x%x\n", \ - __LINE__, #x, exp, x) + (int)__LINE__, #x, (int)(exp), (int)(x))
#define ok_long(x, exp) \ - ok((x) == (exp), "Failed test in line %d: value %s expected 0x%lx, got 0x%lx\n", \ - __LINE__, #x, exp, x) + ok((x) == (exp), "Failed test in line %d: value %s expected 0x%x, got 0x%x\n", \ + (int)__LINE__, #x, (int)(exp), (int)(x))
HWND ghwnd; HDC ghdcWindow;
Modified: trunk/rostests/apitests/gdi32/PatBlt.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32/PatBlt.c?re... ============================================================================== --- trunk/rostests/apitests/gdi32/PatBlt.c [iso-8859-1] (original) +++ trunk/rostests/apitests/gdi32/PatBlt.c [iso-8859-1] Mon Apr 23 10:56:45 2012 @@ -13,9 +13,13 @@ PULONG gpulTargetBits; HDC hdcTarget;
+#define ok_int(x, exp) \ + ok((x) == (exp), "Failed test in line %d: value %s expected 0x%x, got 0x%x\n", \ + (int)__LINE__, #x, (int)(exp), (int)(x)) + #define ok_long(x, exp) \ - ok((x) == (exp), "Failed test in line %d: value %s expected 0x%lx, got 0x%lx\n", \ - __LINE__, #x, exp, x) + ok((x) == (exp), "Failed test in line %d: value %s expected 0x%x, got 0x%x\n", \ + (int)__LINE__, #x, (int)(exp), (int)(x))
void Test_BrushOrigin() {