On Tuesday, 9 June 2026 at 21:01:10 UTC, Alexander wrote:
Is this a bug?

No, this happens when you don't link the static library defining the struct. And the static init symbol for that struct (defined in the static lib) is needed because it's not zero-initialized, due to the static `wchar` arrays. druntime initializes them with 0 for its definition of the `NOTIFYICONDATAW` struct: https://github.com/dlang/dmd/blob/940287bf502969bdb3150946f1c9c402faef0880/druntime/src/core/sys/windows/shellapi.d#L232-L256; it's still not zero-initialized though, because druntime initializes the `cbSize` member.
  • Windows: strange... Alexander via Digitalmars-d-learn
    • Re: Windows... user1234 via Digitalmars-d-learn
    • Re: Windows... kinke via Digitalmars-d-learn
      • Re: Win... Alexander via Digitalmars-d-learn
        • Re:... kinke via Digitalmars-d-learn
          • ... Alexander via Digitalmars-d-learn
            • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn

Reply via email to