Fix Unexpected error for 1453 on Windows (#23729)

This commit is contained in:
psbob 2025-04-30 23:48:16 +01:00 committed by GitHub
parent cc381d56a6
commit 9f7c8b8b1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -695,6 +695,7 @@ pub fn WriteFile(
.LOCK_VIOLATION => return error.LockViolation, .LOCK_VIOLATION => return error.LockViolation,
.NETNAME_DELETED => return error.ConnectionResetByPeer, .NETNAME_DELETED => return error.ConnectionResetByPeer,
.ACCESS_DENIED => return error.AccessDenied, .ACCESS_DENIED => return error.AccessDenied,
.WORKING_SET_QUOTA => return error.SystemResources,
else => |err| return unexpectedError(err), else => |err| return unexpectedError(err),
} }
} }