Update error handling for os2 on windows
This commit is contained in:
1 parent
ccb38c3dc6
commit
bb4f108487
15 files changed
+310
-191
No files matched your search
@@ -6,7 +6,7 @@ import win32 "core:sys/windows"
|
||||
_pipe :: proc() -> (r, w: ^File, err: Error) {
|
||||
p: [2]win32.HANDLE
|
||||
if !win32.CreatePipe(&p[0], &p[1], nil, 0) {
|
||||
return nil, nil, Platform_Error{i32(win32.GetLastError())}
|
||||
return nil, nil, _get_platform_error()
|
||||
}
|
||||
return new_file(uintptr(p[0]), ""), new_file(uintptr(p[1]), ""), nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user