=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: d3d9/tests: Don' t test function directly when reporting GetLastError().

Alexandre Julliard julliard at winehq.org
Mon Sep 26 16:15:12 CDT 2011


Module: wine
Branch: master
Commit: 3c9aa222896c070c72a77b58378f96d5e92c55a6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=3c9aa222896c070c72a77b58378f96d5e92c55a6

Author: André Hentschel <nerv at dawncrow.de>
Date:   Sun Sep 25 20:30:36 2011 +0200

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

---

 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 482f5d4..bf15792 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());




More information about the wine-cvs mailing list