Patrick Eaves and Ryan Garbutt also scored for the Stars, who have won seven of their last eight road games and seven of 10 overall.
Joe Thornton scored for the Sharks, 5-9-2 in their past 13 home games. They failed to make the playoffs for the first time since 2002-03.
Jhonas Enroth stopped 23 of 24 shots to improve to 3-0 in four career appearances against the Sharks. Alex Stalock made 20 saves.