Index: base/test/test_shortcut_win.cc |
diff --git a/base/test/test_shortcut_win.cc b/base/test/test_shortcut_win.cc |
index e226734172239efbfc41b6c0095864dc0213d855..25dc372d24e09f57a99e50079a6d5a47f14491eb 100644 |
--- a/base/test/test_shortcut_win.cc |
+++ b/base/test/test_shortcut_win.cc |
@@ -5,6 +5,7 @@ |
#include "base/test/test_shortcut_win.h" |
#include <windows.h> |
+#include <objbase.h> |
#include <shlobj.h> |
#include <propkey.h> |
@@ -62,8 +63,9 @@ void ValidateShortcut(const base::FilePath& shortcut_path, |
HRESULT hr; |
// Initialize the shell interfaces. |
- EXPECT_TRUE(SUCCEEDED(hr = i_shell_link.CreateInstance( |
- CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER))); |
+ EXPECT_TRUE(SUCCEEDED(hr = ::CoCreateInstance(CLSID_ShellLink, NULL, |
+ CLSCTX_INPROC_SERVER, |
+ IID_PPV_ARGS(&i_shell_link)))); |
if (FAILED(hr)) |
return; |