West Ham moved into the third round of the Carling Cup but the win at Bristol Rovers was marred by the suspected broken leg suffered by Kieron Dyer.
Dyer's injury marred West Ham's win
Dyer went down in agony following a tackle by Joe Jacobson after a few minutes and was taken off on a stretcher after lengthy treatement.
Craig Bellamy put the visitors ahead, blasting home from 25-yards.
Bellamy then raced onto a long ball to fire in the second but Andy Williams' fine run and finish made it 2-1.
Bristol Rovers: Phillips, Lescott, Anthony, Elliott, Carruthers, Pipe, Campbell, Disley (Igoe 70), Jacobson (Haldane 64), Lambert (Andrew Williams 64), Walker.
Subs Not Used: Hinton, Rigg.
Goals: Andrew Williams 72.
West Ham: Wright, Neill, Gabbidon, Ferdinand, McCartney (Collins 62), Dyer (Noble 13), Mullins, Bowyer, Boa Morte, Bellamy (Cole 76), Zamora.
Subs Not Used: Green, Etherington.
Goals: Bellamy 31, 45.
Ref: Michael Jones (Cheshire).