| author | |
| committer | |
| log | 3cc5dda7568b845d5002be4dd3181145ecc3f8bd |
| tree | 6568f799219a22108c4fd1a0a690a188a5f7e471 |
| parent | 649aaf4814f8b74d9f90c0aaa09cbaf1901a6650 |
it's the byte length not number of wchars2 files changed, 2 insertions(+), 2 deletions(-)
lib/std/Io/Threaded.zig+1-1| ... | ... | @@ -12607,7 +12607,7 @@ fn processCurrentDir(userdata: ?*anyopaque, buffer: []u8) process.CurrentDirErro |
| 12607 | 12607 | _ = t; |
| 12608 | 12608 | if (is_windows) { |
| 12609 | 12609 | var wtf16le_buf: [windows.PATH_MAX_WIDE:0]u16 = undefined; |
| 12610 | const n = windows.ntdll.RtlGetCurrentDirectory_U(wtf16le_buf.len + 1, &wtf16le_buf); | |
| 12610 | const n = windows.ntdll.RtlGetCurrentDirectory_U(wtf16le_buf.len * 2 + 2, &wtf16le_buf) / 2; | |
| 12611 | 12611 | if (n == 0) return error.Unexpected; |
| 12612 | 12612 | assert(n <= wtf16le_buf.len); |
| 12613 | 12613 | const wtf16le_slice = wtf16le_buf[0..n]; |
lib/std/os/windows/ntdll.zig+1-1| ... | ... | @@ -497,7 +497,7 @@ pub extern "ntdll" fn RtlGetFullPathName_U( |
| 497 | 497 | ) callconv(.winapi) ULONG; |
| 498 | 498 | |
| 499 | 499 | pub extern "ntdll" fn RtlGetCurrentDirectory_U( |
| 500 | BufferLength: ULONG, | |
| 500 | BufferByteLength: ULONG, | |
| 501 | 501 | Buffer: [*]u16, |
| 502 | 502 | ) callconv(.winapi) ULONG; |
| 503 | 503 |