From edcbd7ed2c75c425a7ea316ecfb41c7d267f83c7 Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Fri, 19 Dec 2025 03:17:10 -0800 Subject: [PATCH] os.windows: Add comment explaining why we don't need a separate EX definition for RENAME_INFORMATION --- lib/std/os/windows.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index f2ff2a1c1b7609997cbaf718f0f2e9fdf07bed4a..125b43f736b2b5afabcaa2f0095f9f220969fb49 100644 --- 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, -- 2.54.0