| ... | @@ -5149,18 +5149,8 @@ pub fn realpathW(pathname: []const u16, out_buffer: *[MAX_PATH_BYTES]u8) RealPat | ... | @@ -5149,18 +5149,8 @@ pub fn realpathW(pathname: []const u16, out_buffer: *[MAX_PATH_BYTES]u8) RealPat |
| 5149 | .share_access = share_access, | 5149 | .share_access = share_access, |
| 5150 | .creation = creation, | 5150 | .creation = creation, |
| 5151 | .io_mode = .blocking, | 5151 | .io_mode = .blocking, |
| | 5152 | .filter = .any, |
| 5152 | }) catch |err| switch (err) { | 5153 | }) catch |err| switch (err) { |
| 5153 | error.IsDir => break :blk w.OpenFile(pathname, .{ | | |
| 5154 | .dir = dir, | | |
| 5155 | .access_mask = access_mask, | | |
| 5156 | .share_access = share_access, | | |
| 5157 | .creation = creation, | | |
| 5158 | .io_mode = .blocking, | | |
| 5159 | .filter = .dir_only, | | |
| 5160 | }) catch |er| switch (er) { | | |
| 5161 | error.WouldBlock => unreachable, | | |
| 5162 | else => |e2| return e2, | | |
| 5163 | }, | | |
| 5164 | error.WouldBlock => unreachable, | 5154 | error.WouldBlock => unreachable, |
| 5165 | else => |e| return e, | 5155 | else => |e| return e, |
| 5166 | }; | 5156 | }; |