Commit 77047c76 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

opengl32/tests: Don't test function directly when reporting GetLastError().

parent 301d7204
......@@ -235,9 +235,10 @@ static int test_pfd(const PIXELFORMATDESCRIPTOR *pfd, PIXELFORMATDESCRIPTOR *fmt
pf = ChoosePixelFormat( hdc, pfd );
if (pf && fmt)
{
INT ret;
memset(fmt, 0, sizeof(*fmt));
ok(DescribePixelFormat( hdc, pf, sizeof(*fmt), fmt ),
"DescribePixelFormat failed with error: %u\n", GetLastError());
ret = DescribePixelFormat( hdc, pf, sizeof(*fmt), fmt );
ok(ret, "DescribePixelFormat failed with error: %u\n", GetLastError());
}
ReleaseDC( hwnd, hdc );
DestroyWindow( hwnd );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment