Use union #shared_nil for os.Error
This commit is contained in:
1 parent
e60951a902
commit
9f9abb8fb3
18 files changed
+93
-87
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user