Use union #shared_nil for os.Error

This commit is contained in:
gingerBill
2024-08-04 11:05:30 +01:00
parent e60951a902
commit 9f9abb8fb3
18 changed files with 93 additions and 87 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ set_env :: proc(key, value: string) -> Errno {
v := win32.utf8_to_wstring(value)
if !win32.SetEnvironmentVariableW(k, v) {
return Errno(win32.GetLastError())
return Platform_Error(win32.GetLastError())
}
return 0
}
@@ -59,7 +59,7 @@ set_env :: proc(key, value: string) -> Errno {
unset_env :: proc(key: string) -> Errno {
k := win32.utf8_to_wstring(key)
if !win32.SetEnvironmentVariableW(k, nil) {
return Errno(win32.GetLastError())
return Platform_Error(win32.GetLastError())
}
return 0
}