authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2025-12-19 03:17:10-08:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-12-23 22:15:10-08:00
logedcbd7ed2c75c425a7ea316ecfb41c7d267f83c7
tree1d30cbf6ec622dff0baebd33708aa7f33949aaeb
parentb6cde023225de9a164fc5e43ddc04551934cf6e9

os.windows: Add comment explaining why we don't need a separate EX definition for RENAME_INFORMATION


1 files changed, 4 insertions(+), 0 deletions(-)

lib/std/os/windows.zig+4
......@@ -215,6 +215,10 @@ pub const FILE = struct {
215215 AccessFlags: ACCESS_MASK,
216216 };
217217
218 // Note: This is not separated into RENAME_INFORMATION and RENAME_INFORMATION_EX because
219 // the only difference is the `Flags` type (BOOLEAN before _EX, ULONG in the _EX),
220 // which doesn't affect the struct layout--the offset of RootDirectory is the same
221 // regardless.
218222 pub const RENAME_INFORMATION = extern struct {
219223 Flags: FLAGS,
220224 RootDirectory: ?HANDLE,