Author: tfaber
Date: Wed Apr 22 15:50:00 2015
New Revision: 67349
URL:
http://svn.reactos.org/svn/reactos?rev=67349&view=rev
Log:
[NTDLL_APITEST]
- Ensure 4-byte alignment for ATOM_BASIC_INFORMATION
CORE-6994 #resolve
Modified:
trunk/rostests/winetests/ntdll/atom.c
Modified: trunk/rostests/winetests/ntdll/atom.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/ntdll/atom.c?re…
==============================================================================
--- trunk/rostests/winetests/ntdll/atom.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/ntdll/atom.c [iso-8859-1] Wed Apr 22 15:50:00 2015
@@ -432,9 +432,9 @@
{
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);