d3d9/tests: Don't test function directly when reporting GetLastError()
André Hentschel
nerv at dawncrow.de
Sun Sep 25 13:30:36 CDT 2011
---
dlls/d3d9/tests/device.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index 625dce9..f935b11 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -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());
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list