-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
2 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters