aboutsummaryrefslogtreecommitdiff
path: root/core/path/filepath
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-08-04 11:58:04 +0100
committergingerBill <bill@gingerbill.org>2024-08-04 11:58:04 +0100
commit97c499dbb40deeef3778c9a20aa2b38d96aa46f1 (patch)
tree66b5ed8c30068770766d8183bfb0951986a628f0 /core/path/filepath
parent1d75a612d54f102ef530c1f58546e3cdb239160c (diff)
Begin mapping `os.Error` in the rest of the codebase
Diffstat (limited to 'core/path/filepath')
-rw-r--r--core/path/filepath/path_windows.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/path/filepath/path_windows.odin b/core/path/filepath/path_windows.odin
index 6a9ac9dee..d886d71da 100644
--- a/core/path/filepath/path_windows.odin
+++ b/core/path/filepath/path_windows.odin
@@ -63,17 +63,17 @@ temp_full_path :: proc(name: string) -> (path: string, err: os.Error) {
p := win32.utf8_to_utf16(name, ta)
n := win32.GetFullPathNameW(raw_data(p), 0, nil, nil)
if n == 0 {
- return "", os.Platform_Error(win32.GetLastError())
+ return "", os.get_last_error()
}
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.Platform_Error(win32.GetLastError())
+ return "", os.get_last_error()
}
- return win32.utf16_to_utf8(buf[:n], ta) or_else "", os.ERROR_NONE
+ return win32.utf16_to_utf8(buf[:n], ta)
}