Skip to content

Commit

Permalink
fix: windows environment block is 0-delimited
Browse files Browse the repository at this point in the history
  • Loading branch information
robbielyman committed Jan 3, 2025
1 parent 228e235 commit 8525413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn main() !void {
switch (builtin.os.tag) {
.windows => old: {
const old = std.os.windows.peb().ProcessParameters.Environment;
std.os.windows.peb().ProcessParameters.Environment = environ.ptr;
std.os.windows.peb().ProcessParameters.Environment = @ptrCast(environ.ptr);
break :old old;
},
.linux, .macos => old: {
Expand Down

0 comments on commit 8525413

Please sign in to comment.