[PATCH 4/7] opengl32/tests: Fix typo in ok() condition.

Matteo Bruni mbruni at codeweavers.com
Fri Sep 15 08:12:25 CDT 2017


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 dlls/opengl32/tests/opengl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index 2810eee31e..fd68a99415 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -404,7 +404,7 @@ static void test_setpixelformat(HDC winhdc)
         ok( GetLastError() == ERROR_INVALID_PIXEL_FORMAT, "wrong error %u\n", GetLastError() );
         SetLastError( 0xdeadbeef );
         res = SetPixelFormat( hdc, pf, &pfd );
-        ok( i == 0, "SetPixelFormat succeeded\n" );
+        ok( !res, "SetPixelFormat succeeded\n" );
         ok( GetLastError() == ERROR_INVALID_HANDLE, "wrong error %u\n", GetLastError() );
         SetLastError( 0xdeadbeef );
         res = DescribePixelFormat( hdc, 0, 0, NULL );
-- 
2.13.5




More information about the wine-patches mailing list