From 78142c5a0afbca85e0c102380a2a6031cca09030 Mon Sep 17 00:00:00 2001 From: LunaTheFoxgirl Date: Sun, 15 Dec 2024 21:42:06 +0100 Subject: [PATCH] Even more env fixes for win32 --- source/numem/env.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/numem/env.d b/source/numem/env.d index b97e595..b5bcb36 100644 --- a/source/numem/env.d +++ b/source/numem/env.d @@ -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;