Mark Bell and Patrick Marleau scored for San Jose. Starting goalie Evgeni Nabokov was pulled after giving up two goals on eight shots in the first period, and Vesa Toskala went the rest of the way -- also giving up two goals on eight shots -- as the Sharks lost their third straight game.
Dallas opened the scoring just 44 seconds into the first period when Lundqvist scored his second goal of the season. The Sharks got the equalizer 33 seconds later on Bell's seventh goal of the campaign.
Barnes scored off a feed from Jeff Halpern with 4:44 left in the first to give Dallas a 2-1 lead after one period.
The Stars scored what turned out to be the winning goal at 7:32 of the second when Lehtinen sent a pass in front of the goal that caromed off a Sharks' stick and into the goal.