DETROIT (AP) -- Patrick Marleau scored the winner in the shootout and had a short-handed goal early in the game, lifting the San Jose Sharks to a 3-2 win over the Detroit Red Wings on Thursday night. Antti Niemi made 27 saves through overtime, while Jimmy Howard stopped 28 shots for Detroit. Niemi got his glove on Niklas Kronwall's slap shot with 44 seconds left in the extra period, giving the Sharks a chance in the shootout. San Jose, trying to earn home-ice advantage in the first round of the playoffs, is in fourth place in the Western Conference, one point ahead of St. Louis and Los Angeles. The Kings were facing Colorado later Thursday The Red Wings, clinging to the eighth and final playoff spot in the West, are hoping to extend the franchise's streak of consecutive postseason appearances to 22 but have lost five of their last seven games.