New York had not won since Nov. 29. The 10 losses were the most in a row for the Islanders in 11 seasons.
DiPietro has missed almost the entire season with a knee injury and this was his first victory of the year. He had lost his other two decisions.
Toskala allowed all four goals on 31 shots. He gave up seven goals Tuesday in an 8-2 loss to Dallas.