Matteo Bruni : opengl32/tests: Fix typo in ok() condition.
Alexandre Julliard
julliard at winehq.org
Fri Sep 15 13:12:06 CDT 2017
Module: wine
Branch: master
Commit: 4d4a1477dc32ac33515fdbe635fc9190ab253e76
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d4a1477dc32ac33515fdbe635fc9190ab253e76
Author: Matteo Bruni <mbruni at codeweavers.com>
Date: Fri Sep 15 15:12:25 2017 +0200
opengl32/tests: Fix typo in ok() condition.
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 2810eee..fd68a99 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 );
More information about the wine-cvs
mailing list