38 if (!xps_om_object_factory_ && Initialize()) {
40 CoCreateInstance(__uuidof(XpsOMObjectFactory),
nullptr,
41 CLSCTX_INPROC_SERVER, __uuidof(IXpsOMObjectFactory),
42 reinterpret_cast<LPVOID*>(&xps_om_object_factory_));
43 if (SUCCEEDED(result)) {
44 DCHECK(xps_om_object_factory_);
46 DCHECK(!xps_om_object_factory_);
50 return xps_om_object_factory_;