Alexandre Julliard pushed to branch master at wine / wine
Commits: c055c838 by Jacek Caban at 2025-02-12T16:02:21+01:00 msvcp: Avoid explicitly aligning structs passed by value.
Based on Piotr's findings.
On MSVC i386 targets, structs requiring alignment greater than 4 are never passed by value. Clang follows the same behavior in MSVC mode (see [1] for details and [2] for a follow-up that applies this logic when fields, not necessarily the entire struct, are aligned).
A number of ios functions take fpos_mbstatet as an argument and expect it to be passed by value.
[1] https://reviews.llvm.org/D72114 [2] https://github.com/llvm/llvm-project/issues/63257
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57817
- - - - - 17915f73 by Jacek Caban at 2025-02-12T16:02:21+01:00 msvcp60: Avoid explicitly aligning structs passed by value.
- - - - -
5 changed files:
- dlls/msvcp60/ios.c - dlls/msvcp60/tests/ios.c - dlls/msvcp90/ios.c - dlls/msvcp90/msvcp90.h - dlls/msvcp90/tests/ios.c
View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/4c6fae3d5c3a6ce801cbf20996b62d...