Bug 24782 – mmsystem header has align(1): near top

Status
NEW
Severity
minor
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2024-09-23T23:47:55Z
Last change time
2024-12-07T13:43:52Z
Assigned to
No Owner
Creator
Adam D. Ruppe
Moved to GitHub: dmd#17486 →

Comments

Comment #0 by destructionator — 2024-09-23T23:47:55Z
ttps://github.com/dlang/dmd/blob/master/druntime/src/core/sys/windows/mmsystem.d#L21 in upstream still too. another bug caught by safer by default? that looks just plain wrong, but also not super important since things are pointers and dwords contrast to this thing generated from the microsoft xml: https://github.com/rumbu13/windows-d/blob/master/out/windows/multimedia.d#L576 this has align(1): inside the struct, which is different than outside the struct! either one is wrong and the other is right, or they're both wrong this mingw based thing from wine also doesn't have an align setting. https://github.com/wine-mirror/wine/blob/master/include/mmsystem.h feels wrong to me, want second opinion. this potential bug caughed by OpenD Safer By Default btw: arsd\simpleaudio.d(2274): Deprecation: field `WAVEHDR.lpData` cannot modify misaligned pointers in non-`@system`/`@trusted` code
Comment #1 by robert.schadek — 2024-12-07T13:43:52Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17486 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB