| ... | @@ -134,6 +134,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN | ... | @@ -134,6 +134,7 @@ pub fn OpenFile(sub_path_w: []const u16, options: OpenFileOptions) OpenError!HAN |
| 134 | .OBJECT_NAME_COLLISION => return error.PathAlreadyExists, | 134 | .OBJECT_NAME_COLLISION => return error.PathAlreadyExists, |
| 135 | .FILE_IS_A_DIRECTORY => return error.IsDir, | 135 | .FILE_IS_A_DIRECTORY => return error.IsDir, |
| 136 | .NOT_A_DIRECTORY => return error.NotDir, | 136 | .NOT_A_DIRECTORY => return error.NotDir, |
| | 137 | .INVALID_HANDLE => unreachable, |
| 137 | else => return unexpectedStatus(rc), | 138 | else => return unexpectedStatus(rc), |
| 138 | } | 139 | } |
| 139 | } | 140 | } |