Skip to content

Commit

Permalink
Even more env fixes for win32
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Dec 15, 2024
1 parent fedc5f8 commit 78142c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/numem/env.d
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ bool nuSetEnvironmentVariable(nstring key, nstring value) @nogc {
import core.sys.windows.winbase : SetEnvironmentVariableW;
auto utf16k = key.toUTF16();
auto utf16v = value.toUTF16();
return SetEnvironmentVariableW(cast(wchar*)utf16k.ptr, cast(wchar*)utf16v.ptr);
return cast(bool)SetEnvironmentVariableW(cast(wchar*)utf16k.ptr, cast(wchar*)utf16v.ptr);
} else version(Posix) {

import core.sys.posix.stdlib : setenv;
Expand Down

0 comments on commit 78142c5

Please sign in to comment.