ntdll/tests: Ensure 4-byte alignment for ATOM_BASIC_INFORMATION.

This commit is contained in:
Thomas Faber 2015-04-21 17:14:08 +02:00 committed by Alexandre Julliard
parent 0c27e5cd66
commit bb781b4468
1 changed files with 2 additions and 2 deletions

View File

@ -432,9 +432,9 @@ static void test_Global(void)
{ {
NTSTATUS res; NTSTATUS res;
RTL_ATOM atom; RTL_ATOM atom;
char ptr[sizeof(ATOM_BASIC_INFORMATION) + 255 * sizeof(WCHAR)]; ULONG ptr[(sizeof(ATOM_BASIC_INFORMATION) + 255 * sizeof(WCHAR)) / sizeof(ULONG)];
ATOM_BASIC_INFORMATION* abi = (ATOM_BASIC_INFORMATION*)ptr; ATOM_BASIC_INFORMATION* abi = (ATOM_BASIC_INFORMATION*)ptr;
ULONG ptr_size = sizeof(ATOM_BASIC_INFORMATION) + 255 * sizeof(WCHAR); ULONG ptr_size = sizeof(ptr);
if (pNtAddAtomNT4) if (pNtAddAtomNT4)
res = pNtAddAtomNT4(testAtom1, &atom); res = pNtAddAtomNT4(testAtom1, &atom);