Main for Windows repair.