From 4d4a1477dc32ac33515fdbe635fc9190ab253e76 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Fri, 15 Sep 2017 15:12:25 +0200 Subject: [PATCH] opengl32/tests: Fix typo in ok() condition. Signed-off-by: Matteo Bruni Signed-off-by: Alexandre Julliard --- 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 2810eee31e6..fd68a994153 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 );