Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cast of more strictly aligned pointer #10702

Merged

Commits on Oct 15, 2021

  1. Fix cast of more strictly aligned pointer

    The char buffer[] is cast to REPARSE_DATA_BUFFER* but the latter is
    more strictly aligned. The point variable was also unused. The
    REPARSE_DATA_BUFFER struct has a flexible array member (pre-C99
    style), so we replace them with the classic idiom of an anonymous
    union composed of a backing char buffer for storage, and a value
    of the targeted type for alignment.
    MisterDA committed Oct 15, 2021
    Configuration menu
    Copy the full SHA
    dbb60dc View commit details
    Browse the repository at this point in the history