Index: base/test/test_shortcut_win.cc |
diff --git a/base/test/test_shortcut_win.cc b/base/test/test_shortcut_win.cc |
index ef07da604fc2c223dabc5151d52a02e61aefb39c..e226734172239efbfc41b6c0095864dc0213d855 100644 |
--- a/base/test/test_shortcut_win.cc |
+++ b/base/test/test_shortcut_win.cc |
@@ -67,7 +67,8 @@ void ValidateShortcut(const base::FilePath& shortcut_path, |
if (FAILED(hr)) |
return; |
- EXPECT_TRUE(SUCCEEDED(hr = i_persist_file.QueryFrom(i_shell_link.Get()))); |
+ EXPECT_TRUE( |
+ SUCCEEDED(hr = i_shell_link.CopyTo(i_persist_file.GetAddressOf()))); |
if (FAILED(hr)) |
return; |
@@ -112,7 +113,8 @@ void ValidateShortcut(const base::FilePath& shortcut_path, |
if (GetVersion() >= VERSION_WIN7) { |
ScopedComPtr<IPropertyStore> property_store; |
- EXPECT_TRUE(SUCCEEDED(hr = property_store.QueryFrom(i_shell_link.Get()))); |
+ EXPECT_TRUE( |
+ SUCCEEDED(hr = i_shell_link.CopyTo(property_store.GetAddressOf()))); |
if (FAILED(hr)) |
return; |