windows: some random things (#8521)

* swaggin

* fix(bun_shim_impl): support exe names that are shorter than four characters

* hi

* a
This commit is contained in:
dave caruso
2024-01-29 10:50:24 -08:00
committed by GitHub
parent eaea6dea54
commit bc7e7027e4
26 changed files with 1000 additions and 86 deletions

View File

@@ -1270,7 +1270,7 @@ pub const SliceWithUnderlyingString = struct {
}
if (this.utf8.allocator.get()) |_| {
if (bun.strings.toUTF16Alloc(bun.default_allocator, this.utf8.slice(), false) catch null) |utf16| {
if (bun.strings.toUTF16Alloc(bun.default_allocator, this.utf8.slice(), false, false) catch null) |utf16| {
this.utf8.deinit();
this.utf8 = .{};
return JSC.ZigString.toExternalU16(utf16.ptr, utf16.len, globalObject);