• Eric Pouech's avatar
    ntdll/tests: Force alignment of output structures. · c28a749f
    Eric Pouech authored
    Some Windows version expect output to be aligned on 4 bytes.
    
    Notes (from i386 and x86_64 tests):
    - MSVC and Mingw/gcc don't layout the two variables (sdki, sdki_ex)
      the same way.
    - MSVC aligns each variable on 4-byte boundary,
    - MingW/GCC stores them in a 8-byte chunk, but starting from the
      end of the buffer: hence none of them is on a 4-byte boundary.
    
    So, fixing the alignment of variables is not sufficient to
    workaround the compilers' discrepancy on all source code.
    
    I didn't find a generic way to align on 4 bytes structures of size
    smaller than 4 bytes (apart from adding the DECLSPEC_ALIGN to
    each of the offending structures, likely not that many though).
    Ideas welcomed.
    
    Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53684Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com>
    c28a749f
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...