Commit 45a48b5a authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

kernel32/tests: Use sizeof(STARTUPINFOEX) for STARTUPINFOEX.STARTUPINFO.cb in process tests.

Fixes some test failures on a few Testbot machines when the process attributes are just ignored. Signed-off-by: 's avatarPaul Gofman <pgofman@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 522e13e6
......@@ -4073,7 +4073,7 @@ static void test_parent_process_attribute(unsigned int level, HANDLE read_pipe)
}
memset(&si, 0, sizeof(si));
si.StartupInfo.cb = sizeof(si.StartupInfo);
si.StartupInfo.cb = sizeof(si);
if (level)
{
......@@ -4221,7 +4221,7 @@ static void test_handle_list_attribute(BOOL child, HANDLE handle1, HANDLE handle
"Got unexpected ret %#x, GetLastError() %u.\n", ret, GetLastError());
memset(&si, 0, sizeof(si));
si.StartupInfo.cb = sizeof(si.StartupInfo);
si.StartupInfo.cb = sizeof(si);
si.lpAttributeList = heap_alloc(size);
ret = pInitializeProcThreadAttributeList(si.lpAttributeList, 1, 0, &size);
ok(ret, "Got unexpected ret %#x, GetLastError() %u.\n", ret, GetLastError());
......
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