BUFFALO, N.Y. (AP) — Dylan Larkin scored twice and converted one of Detroit’s two shootout goals, and the Red Wings snapped a nine-game skid with a win over the Buffalo Sabres.

Andreas Athanasiou sealed the victory by scoring on Detroit’s second shootout opportunity after Jonathan Bernier stopped Jack Eichel and Sam Reinhart on Buffalo’s first two attempts. Bernier finished with 29 saves through overtime, and Tyler Bertuzzi also scored in a game during which the Red Wings rebounded after squandering a 2-0 third-period lead.

By improving to 1-8-1 their past 10 and winning for the first time since a 3-2 shootout victory at Ottawa on Jan. 10, the Red Wings avoided their second 10-game losing streak of the season. Detroit went 0-10-2 during a stretch spanning November and December. Detroit also ended a nine-game road losing streak dating to a 2-1 win at Montreal on Dec. 14.

The Sabres earned a point when Evan Rodrigues tied it at 3 with 47 seconds remaining