About 40 minutes after Wednesday night's game against the Spurs, a handful of the Warriors' players and coaches posed for photos with family, friends and fans near the baseline at the AT&T Center.

The subjects of the photos will make for nice keepsakes, but the scoreboard in the background will make for history. It read: Warriors 100, Spurs 91.

The Warriors beat the Spurs in Game 2 of the teams' Western Conference semifinal to claim home-court advantage in the best-of-seven series and to bring an end to a Texas-sized drought in San Antonio.

Two days after one of the worst collapses in NBA postseason history, the Warriors flirted with disaster again before clinging to a victory that snapped a 30-game losing streak in the Alamo City. The Warriors had not won at the AT&T Center and had not beaten 37-year-old Tim Duncan on his home floor.

It was, in fact, their first victory in San Antonio since Feb. 14, 1997.

Of course, something this significant rarely comes without a little drama.

The Warriors led by 20 points with 8:07 remaining in the third quarter and by 10 with 7:27 left in the game. But Manu Ginobili made a three-pointer to trim the Spurs' deficit to 95-89 with 4:23 on the clock.

Stephen Curry, who posted a fourth-quarter-high six points, scored the game's next five points to extend the Warriors' lead back to double digits. He made a driving reverse scoop and then drilled a long jumper to create some calm and put Game 1 in the rearview mirror.

The Warriors on Monday were the first team out of 393 to blow a 16-point lead in the final four minutes of a playoff game. This time, they stood strong behind Curry's late-game play and Klay Thompson's impression of Curry in the first half.

"I thought it was polite of them to at least take turns and not both be on fire on the same night," San Antonio head coach Gregg Popovich said. "Maybe the next iteration is that neither one of them will be hot in Game 3. That's what I'm hoping, but Klay was unbelievable. ... He knocked them down, and that's what the playoffs are about."

Thompson scored a game-high 34 points, including a franchise postseason record eight three-pointers, and had his first career double-double with 14 rebounds. Curry added 22 points, four assists and four rebounds as the Spurs made him look human.

The Warriors won a road playoff game after the first round for the first time since beating the Lakers in 1991. They got six points and 11 rebounds from Andrew Bogut, who has grabbed double-digit rebounds in three straight, and 13 points from Harrison Barnes, who has scored in double figures in four consecutive.

San Antonio was led by 23 points and nine rebounds from Duncan and 20 points and six rebounds from Tony Parker. But no one on the Spurs was all that good as they shot 39.3 percent from the field and are making less than 42 percent of their attempts in the series.

"We can't blame it on just luck," said Ginobili, who had 12 points on 1-of-6 three-point shooting. "They did a great job, and we did a really poor job. ... We've got to give them credit. They played much better than us, and miracles don't happen that often. We didn't deserve Game 1, either. We've got to do better over there, because playing like this, we don't have a chance."