From 01800e878463284e0cbb727fdbcc4eb80ce89962 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Fri, 24 Aug 2012 20:25:29 +0000 Subject: [PATCH] [GDI32_APITEST] Fix use of uninitialized variables and remove broken test. See issue #7299 for more details. svn path=/trunk/; revision=57157 --- rostests/apitests/gdi32/CombineTransform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rostests/apitests/gdi32/CombineTransform.c b/rostests/apitests/gdi32/CombineTransform.c index 3395e9f261f..c7b0eaf1164 100644 --- a/rostests/apitests/gdi32/CombineTransform.c +++ b/rostests/apitests/gdi32/CombineTransform.c @@ -54,6 +54,8 @@ void Test_CombineTransform() BOOL ret; /* Test NULL paramters */ + set_xform(&xform1, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0); + set_xform(&xform2, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0); SetLastError(ERROR_SUCCESS); ret = CombineTransform(&xform3, &xform1, NULL); ok_int(ret, 0); @@ -61,8 +63,6 @@ void Test_CombineTransform() ok_int(ret, 0); ret = CombineTransform(NULL, &xform1, &xform2); ok_int(ret, 0); - ret = CombineTransform(&xform3, &xform1, &xform2); - ok_int(ret, 0); ok_int(GetLastError(), ERROR_SUCCESS); /* 2 zero matrices */