QUEBEC — Defenceman Stephen Desrocher whipped a shot under the crossbar at 18:07 of overtime to give the Ontario Hockey league champion Oshawa Generals a 5-4 victory over the host Quebec Remparts on Sunday at the Mastercard Memorial Cup.

Oshawa’s Tobias Lindberg forced extra time with a one-timer from close range on a power play with 2:09 left in regulation time, to the dismay of most of the 10,970 at the Pepsi Colisee.

The Generals (2-0) had blown three one-goal leads, the last one when Dmytro Timashov scored twice in a 3:09 span of the third to give Quebec (1-1) its first lead.

Quebec had just used its time out when Cole Cassels won a faceoff in the Remparts zone and Desrochers scored his second of the tournament.

Michael McCarron, Michael Dal Colle and Dakota Mermis had the other goals for Oshawa, which outshot Quebec 50-25. The Generals are guaranteed to at least reach the semifinals of the four-team event with their second victory of the tournament.

Defencemen Raphael Maheux and Ryan Graves also scored for the Remparts.

The NHL draft-eligible Timashov, a Ukrainian-born Swede who ended a 17-game goal drought, beat Ken Appleby on a bad-angle shot from the right side on a power play to tie the game at 5:39. Then, he scored another from a tight angle on the left side at 8:48 to make it 4-3 Quebec.

The Generals dominated territorially for most of the game but Quebec’s Zach Fucale was solid in goal.

The Generals scored on their first shot as Dal Colle’s wrist shot was deflected in by McCarron at 2:18. Quebec, however, tied it at 5:43 when Maheux took a cross-ice pass from Anthony Duclair and beat Appleby with a wrist shot.

Vladimir Tkachev missed the net on a good chance from the slot and saw the puck go around the boards for a 2-on-1 the other way, and McCarron fed Dal Colle for his second of the tournament at 12:40.

Graves tied it with his second in as many games with a bullet shot from the point 12:45 into the second.

The Generals still had pressure after a power play when a seeing-eye wrist shot from the point by Mermis got through traffic and into the net 2:34 into the third, only to see Timashov erase that lead and put Quebec ahead for the first time in the game.

The Quebec champion Rimouski Oceanic face the Western Hockey League champion Kelowna Rockets on Monday night.

Oshawa plays Kelowna on Tuesday and Quebec meets Rimouski to close out round-robin play on Wednesday.