Index: content/common/quarantine/quarantine_win.cc |
diff --git a/content/common/quarantine/quarantine_win.cc b/content/common/quarantine/quarantine_win.cc |
index 91eecc75e02d415468a2c53a52e3610f94d28c2a..3feb1966af8854527e17aa2f195465ce6cdcd720 100644 |
--- a/content/common/quarantine/quarantine_win.cc |
+++ b/content/common/quarantine/quarantine_win.cc |
@@ -197,7 +197,8 @@ bool InvokeAttachmentServices(const base::FilePath& full_path, |
const GUID& client_guid, |
HRESULT* save_result) { |
base::win::ScopedComPtr<IAttachmentExecute> attachment_services; |
- HRESULT hr = attachment_services.CreateInstance(CLSID_AttachmentServices); |
+ HRESULT hr = ::CoCreateInstance(CLSID_AttachmentServices, nullptr, CLSCTX_ALL, |
+ IID_PPV_ARGS(&attachment_services)); |
*save_result = S_OK; |
if (FAILED(hr)) { |