Index: chrome/installer/util/wmi.cc |
diff --git a/chrome/installer/util/wmi.cc b/chrome/installer/util/wmi.cc |
index e381223db98b8df5352b9d804627472ba1f9240e..dc2504cb01676dd13ecff06f69f083e92d73fa76 100644 |
--- a/chrome/installer/util/wmi.cc |
+++ b/chrome/installer/util/wmi.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/installer/util/wmi.h" |
#include <windows.h> |
+#include <objbase.h> |
#include <stdint.h> |
#include "base/win/scoped_bstr.h" |
@@ -18,8 +19,8 @@ namespace installer { |
bool WMI::CreateLocalConnection(bool set_blanket, |
IWbemServices** wmi_services) { |
base::win::ScopedComPtr<IWbemLocator> wmi_locator; |
- HRESULT hr = wmi_locator.CreateInstance(CLSID_WbemLocator, NULL, |
- CLSCTX_INPROC_SERVER); |
+ HRESULT hr = ::CoCreateInstance(CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, |
+ IID_PPV_ARGS(&wmi_locator)); |
if (FAILED(hr)) |
return false; |