James Hawkins : advpack: Factor out OCX registering into do_ocx_reg.