Thomas Faber : user32/tests: Avoid side-effect in an assert.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Apr 3 07:14:59 CDT 2015


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

Author: Thomas Faber <thomas.faber at reactos.org>
Date:   Fri Apr  3 08:02:19 2015 +0200

user32/tests: Avoid side-effect in an assert.

---

 dlls/user32/tests/win.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 6869a20..3a0548d 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -4883,6 +4883,7 @@ static void test_IsWindowUnicode(void)
     WNDCLASSA classA;
     WNDCLASSW classW;
     HWND hwnd;
+    ATOM atom;
 
     memset(&classW, 0, sizeof(classW));
     classW.hInstance = GetModuleHandleA(0);
@@ -4894,7 +4895,8 @@ static void test_IsWindowUnicode(void)
     classA.hInstance = GetModuleHandleA(0);
     classA.lpfnWndProc = def_window_procA;
     classA.lpszClassName = ansi_class_nameA;
-    assert(RegisterClassA(&classA));
+    atom = RegisterClassA(&classA);
+    assert(atom);
 
     /* unicode class: window proc */
     hwnd = CreateWindowExW(0, unicode_class_nameW, NULL, WS_POPUP,




More information about the wine-cvs mailing list