diff --git a/known-folders.zig b/known-folders.zig index d85215f..d6a6e17 100644 --- a/known-folders.zig +++ b/known-folders.zig @@ -81,7 +81,7 @@ pub fn getPath(allocator: std.mem.Allocator, folder: KnownFolder) Error!?[]const )) { std.os.windows.S_OK => { defer funcs.CoTaskMemFree(@ptrCast(dir_path_ptr)); - const global_dir = std.unicode.utf16leToUtf8Alloc(allocator, std.mem.span(dir_path_ptr)) catch |err| switch (err) { + const global_dir = std.unicode.utf16LeToUtf8Alloc(allocator, std.mem.span(dir_path_ptr)) catch |err| switch (err) { error.UnexpectedSecondSurrogateHalf => return null, error.ExpectedSecondSurrogateHalf => return null, error.DanglingSurrogateHalf => return null,