Index: base/win/scoped_comptr_unittest.cc |
diff --git a/base/win/scoped_comptr_unittest.cc b/base/win/scoped_comptr_unittest.cc |
index 2493433ab0b96b6f8a6c9905ce4c4d6f74140cb4..edfa8cfc6fafb63299afab33e5f4c1c1982a62cf 100644 |
--- a/base/win/scoped_comptr_unittest.cc |
+++ b/base/win/scoped_comptr_unittest.cc |
@@ -39,7 +39,8 @@ TEST(ScopedComPtrTest, ScopedComPtr) { |
EXPECT_TRUE(com_initializer.succeeded()); |
ScopedComPtr<IUnknown> unk; |
- EXPECT_TRUE(SUCCEEDED(unk.CreateInstance(CLSID_ShellLink))); |
+ EXPECT_TRUE(SUCCEEDED(::CoCreateInstance(CLSID_ShellLink, nullptr, CLSCTX_ALL, |
+ IID_PPV_ARGS(&unk)))); |
ScopedComPtr<IUnknown> unk2; |
unk2.Attach(unk.Detach()); |
EXPECT_TRUE(unk.Get() == NULL); |