Commit 3c9aa222 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

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

parent 150a3308
......@@ -2858,6 +2858,7 @@ static void test_reset_fullscreen(void)
WNDCLASSEX wc = {0};
IDirect3DDevice9 *device = NULL;
IDirect3D9 *d3d = NULL;
ATOM atom;
static const struct message messages[] =
{
{WM_ACTIVATEAPP, FOCUS_WINDOW},
......@@ -2872,7 +2873,8 @@ static void test_reset_fullscreen(void)
wc.lpfnWndProc = test_proc;
wc.lpszClassName = "test_reset_fullscreen";
ok(RegisterClassEx(&wc), "Failed to register a new window class. GetLastError:%d\n", GetLastError());
atom = RegisterClassEx(&wc);
ok(atom, "Failed to register a new window class. GetLastError:%d\n", GetLastError());
device_window = focus_window = CreateWindowEx(0, wc.lpszClassName, "Test Reset Fullscreen", 0, 0, 0, screen_width, screen_height, NULL, NULL, NULL, NULL);
ok(device_window != NULL, "Failed to create a window. GetLastError:%d\n", GetLastError());
......
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