regcure is my first choice for taking care of invalid entries in the registry’s Shared DLL section, and it always restores it properly to working order.