The state Office of Crime Victims’ determination that it pay only half of a homicide victim’s funeral costs because his alleged involvement with illegal drugs contributed to his own death was overruled Wednesday by an appeals court.

The Appellate Division, Second Department decided that the state office should pay all of the $6,000 Vicki Cox requested for her son’s funeral.