commit edcbd7ed2c75c425a7ea316ecfb41c7d267f83c7 (tree)
parent b6cde023225de9a164fc5e43ddc04551934cf6e9
Author: Ryan Liptak <squeek502@hotmail.com>
Date: Fri, 19 Dec 2025 03:17:10 -0800
os.windows: Add comment explaining why we don't need a separate EX definition for RENAME_INFORMATION
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig
@@ -215,6 +215,10 @@ pub const FILE = struct {
AccessFlags: ACCESS_MASK,
};
+ // Note: This is not separated into RENAME_INFORMATION and RENAME_INFORMATION_EX because
+ // the only difference is the `Flags` type (BOOLEAN before _EX, ULONG in the _EX),
+ // which doesn't affect the struct layout--the offset of RootDirectory is the same
+ // regardless.
pub const RENAME_INFORMATION = extern struct {
Flags: FLAGS,
RootDirectory: ?HANDLE,