Two men standing in front of their disabled vehicle were critically injured in Hamburg late Monday night, when their SUV was struck by a pickup truck, whose driver later was charged with driving while intoxicated, town police reported.

The two people injured, a 61-year-old Hamburg man and a 32-year-old man from Hopewell Junction, in the Poughkeepsie-Newburgh area, were taken to Erie County Medical Center, where police said they were listed in critical condition. Their names have not been released.

Slick weather conditions led to the first accident, which left the SUV disabled in the left lane of Lake Shore Road at about 11 p.m.

As the two men were standing in front of the SUV, police said, it was rear-ended by the pickup driven by Thomas A. Gilray Jr., 28, of Hamburg. The SUV then lurched forward and struck the two men, Capt. Kevin A. Trask said.

According to investigators, Gilray had been headed outbound on Lake Shore at Mile Strip Road when he disregarded a police officer who was outside his marked vehicle, attempting to secure the first accident scene.

Officials said Gilray narrowly missed hitting the police officer before his vehicle struck the SUV.

Police charged Gilray with DWI, vehicular assault, reckless endangerment and failure to yield to an emergency vehicle, according to police reports. They also accused him of refusing to take a chemical test.

Gilray was treated in ECMC and released.