`A direct proof of Wiener's theorem'