From ba2bd5cff4fe6f4b3f986ee212d683d7fdbc65a1 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Wed, 22 Jan 2025 18:07:27 -0800 Subject: [PATCH] Fixes #16620 (#16621) --- src/sys.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys.zig b/src/sys.zig index 8992246feb..32dbb6d0d3 100644 --- a/src/sys.zig +++ b/src/sys.zig @@ -2983,7 +2983,7 @@ pub fn getFileAttributes(path: anytype) ?WindowsFileAttributes { const T = std.meta.Child(@TypeOf(path)); if (T == u16) { - assertIsValidWindowsPath(bun.OSPathChar, path); + // Win32 API does file path normalization, so we do not need the valid path assertion here. const dword = kernel32.GetFileAttributesW(path.ptr); if (comptime Environment.isDebug) { log("GetFileAttributesW({}) = {d}", .{ bun.fmt.utf16(path), dword });