Commit 2885e712 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

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

parent 655e7f98
......@@ -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,
......
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