Dunaway's co-presenter Warren Beatty said "Emma Stone, La La Land" had been written in the envelope he was given.
The team from La La Land were in the middle of their acceptance speeches when the mistake was discovered.
Moonlight director Barry Jenkins said: "I don't think my life could be changed any more dramatically than it has in the last 20 or 30 minutes."