Detroit earned its 18th successive home win with a tougher-than-expected 4-2 victory over the Edmonton Oilers Wednesday to close in on the NHL record for consecutive wins on home ice. Detroit squandered a 2-0 lead when Oilers' Sam Gagner scored in the second and third periods to tie the game. But Drew Miller and Henrik Zetterberg answered with goals in the third to help the West-leading Red Wings finish off the Oilers (21-28-5), who are second to last in the conference. The victory moves Detroit (36-17-2) within two wins at Joe Louis Arena from reaching the league mark set by the 1929-30 Boston Bruins and matched by Philadelphia in 1976. Flames 4, Sharks 3: Olli Jokinen capitalized on a turnover by Colin White to break a third-period tie with his third goal of the game, and the Calgary Flames beat the San Jose Sharks. Jokinen also assisted on Jarome Iginla's second-period goal to help Miikka Kiprusoff earn his 300th NHL win and end San Jose's five-game winning streak in the series. Logan Couture, Joe Pavelski and Michal Handzus scored for the Sharks, who have lost consecutive games following a three-game winning streak. San Jose overcame deficits of 2-0 and 3-2 before Jokinen gave the Flames the lead for good early in the third period. Ducks 3, Hurricanes 3: All-Star Corey Perry scored at 2:14 of overtime to help the Anaheim Ducks beat the last-place Carolina Hurricanes 3-2 for their second straight victory. Jonas Hiller made 31 saves for the Ducks, who have won eight of 11 and closed out a four-game homestand having outscored opponents 34-21. The Hurricanes, the East's worst team, blew two one-goal leads in having their two-game winning streak ended. Cam Ward lost for the first time in four career games against Anaheim. He stopped 31 shots. Sabres 6, Bruins 0: With Buffalo Sabres coach Lindy Ruff nursing three broken ribs and watching from the press box, goalie Ryan Miller made 36 saves to earn his second shutout in three games in a 6-0 win over the Boston Bruins. Jason Pominville scored twice, set up both times up by Ville Leino, and helped Buffalo improve to 4-0-1 in its past five. Tyler Ennis had a goal and assist, and Drew Stafford, Christian Ehrhoff and Patrick Kaleta also scored for Buffalo, 5-0-4 in its past nine home games. The Northeast Division-leading Bruins fell to 5-6-1 in their past 12 games. Boston, which won at Washington on Sunday, hasn't won two straight victories since beating Winnipeg and Montreal on Jan. 10-12.