The widow of one of the four victims killed in 2011 in an infamous Suffolk County pharmacy robbery by a painkiller addict cannot hold one of the doctors who prescribed pills to the assailant liable for her husband's death, a state appeals court ruled.

The ruling, handed down on Wednesday by a panel of the Appellate Division, Second Department, was the second time the court has blocked an attempt by relatives of those killed in the Medford robbery to recover damages from the doctors who fed the addictions of convicted murderer David Laffer and his wife and accomplice Melinda Brady.

In an unsigned decision, the panel said that Suffolk County Supreme Court Justice Jerry Garguilo should have dismissed Viedya Sabrina Ferguson's wrongful death lawsuit against Stan Xuhui Li, a former Queens doctor who is serving prison time for illegally selling prescriptions, including to Laffer and two people who died of overdoses.