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,