user32: Fix padding in user_thread_info structure.

Sebastian Lackner sebastian at fds-team.de
Fri Mar 20 22:35:32 CDT 2015


Based on the comment above only TEB->Win32ClientInfo should be used to store the struct user_thread_info.
The padding got out of sync in cb3b7237925a24ba4c5696dd079fdc5d99a48577 where the 64-bit situation was ignored.
The pshpack4 is required because the struct has a size of 31 ULONGs, and gcc will otherwise align the whole
struct up to 8 bytes on 64-bit. I've confirmed manually with C_ASSERTs that the offsets/sizes are right and
that it matches what we expect.

---
 dlls/user32/user_private.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-user32-Fix-padding-in-user_thread_info-structure.patch
Type: text/x-patch
Size: 1232 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150321/f0379754/attachment.bin>


More information about the wine-patches mailing list