aboutsummaryrefslogtreecommitdiff
path: root/core/path/filepath
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-04 11:05:30 +0100
committergingerBill <bill@gingerbill.org>2024-08-04 11:05:30 +0100
commit9f9abb8fb30cb184771094b8cf44346147a6c2fc (patch)
tree8cd9466086225632a9854baca3aadd50ac24d9dc /core/path/filepath
parente60951a902976acfef74b863463bb116858366c5 (diff)
Use `union #shared_nil` for `os.Error`
Diffstat (limited to 'core/path/filepath')
-rw-r--r--core/path/filepath/path_windows.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/path/filepath/path_windows.odin b/core/path/filepath/path_windows.odin
index 5ebd2cdc2..ae26e1394 100644
--- a/core/path/filepath/path_windows.odin
+++ b/core/path/filepath/path_windows.odin
@@ -63,14 +63,14 @@ temp_full_path :: proc(name: string) -> (path: string, err: os.Errno) {
p := win32.utf8_to_utf16(name, ta)
n := win32.GetFullPathNameW(raw_data(p), 0, nil, nil)
if n == 0 {
- return "", os.Errno(win32.GetLastError())
+ return "", os.Platform_Error(win32.GetLastError())
}
buf := make([]u16, n, ta)
n = win32.GetFullPathNameW(raw_data(p), u32(len(buf)), raw_data(buf), nil)
if n == 0 {
delete(buf)
- return "", os.Errno(win32.GetLastError())
+ return "", os.Platform_Error(win32.GetLastError())
}
return win32.utf16_to_utf8(buf[:n], ta) or_else "", os.ERROR_NONE