I would expect a warranty of at least a year on something like that. I would expect it to stay fixed for a "reasonable lifetime of the product". A window lock is something I would expect to have a lifetime of at least five years unless, for any reason, that lifetime is likely to be shortened.
If someone repairs something, how long should you expect it to stay fixed? A year? 6 months? Forever?
Window lock on double glazing.