Open
Description
Adam D. Ruppe reported this on 2024-09-23T23:47:55Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=24782
Description
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