Commit bb781b44 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

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

parent 0c27e5cd
......@@ -432,9 +432,9 @@ static void test_Global(void)
{
NTSTATUS res;
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;
ULONG ptr_size = sizeof(ATOM_BASIC_INFORMATION) + 255 * sizeof(WCHAR);
ULONG ptr_size = sizeof(ptr);
if (pNtAddAtomNT4)
res = pNtAddAtomNT4(testAtom1, &atom);
......
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