Commit b853ddc4 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

user32/tests: Remove side effects from assert()s.

parent 0bd04d40
......@@ -1523,10 +1523,14 @@ static void test_MDI_child_stack(HWND mdi_client)
cs.style = 0;
cs.lParam = (LPARAM)mdi_lParam_test_message;
assert(child_1 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs));
assert(child_2 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs));
assert(child_3 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs));
assert(child_4 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs));
child_1 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs);
ok(child_1 != 0, "expected child_1 to be non NULL");
child_2 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs);
ok(child_2 != 0, "expected child_2 to be non NULL");
child_3 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs);
ok(child_3 != 0, "expected child_3 to be non NULL");
child_4 = (HWND)SendMessageA(mdi_client, WM_MDICREATE, 0, (LPARAM)&cs);
ok(child_4 != 0, "expected child_4 to be non NULL");
stack[0] = (HWND)SendMessageA(mdi_client, WM_MDIGETACTIVE, 0, 0);
stack[1] = GetWindow(stack[0], GW_HWNDNEXT);
......
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