Skip to content

Commit 8525413

Browse files
committed
fix: windows environment block is 0-delimited
1 parent 228e235 commit 8525413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub fn main() !void {
3131
switch (builtin.os.tag) {
3232
.windows => old: {
3333
const old = std.os.windows.peb().ProcessParameters.Environment;
34-
std.os.windows.peb().ProcessParameters.Environment = environ.ptr;
34+
std.os.windows.peb().ProcessParameters.Environment = @ptrCast(environ.ptr);
3535
break :old old;
3636
},
3737
.linux, .macos => old: {

0 commit comments

Comments
 (0)