| ... | @@ -182,6 +182,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN | ... | @@ -182,6 +182,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN |
| 182 | .PIPE_BUSY => return error.PipeBusy, | 182 | .PIPE_BUSY => return error.PipeBusy, |
| 183 | .OBJECT_PATH_SYNTAX_BAD => unreachable, | 183 | .OBJECT_PATH_SYNTAX_BAD => unreachable, |
| 184 | .OBJECT_NAME_COLLISION => return error.PathAlreadyExists, | 184 | .OBJECT_NAME_COLLISION => return error.PathAlreadyExists, |
| | 185 | .FILE_IS_A_DIRECTORY => return error.IsDir, |
| 185 | else => return unexpectedStatus(rc), | 186 | else => return unexpectedStatus(rc), |
| 186 | } | 187 | } |
| 187 | } | 188 | } |