Index: base/win/shortcut.cc |
diff --git a/base/win/shortcut.cc b/base/win/shortcut.cc |
index 207fdbe0a29c66d79ded7f0f0518b0d81665e8d2..f8b2182b28664224c76ff39321dfcd6d326d5275 100644 |
--- a/base/win/shortcut.cc |
+++ b/base/win/shortcut.cc |
@@ -321,8 +321,8 @@ bool TaskbarPinShortcutLink(const wchar_t* shortcut) { |
if (GetVersion() < VERSION_WIN7) |
return false; |
- int result = reinterpret_cast<int>(ShellExecute(NULL, L"taskbarpin", shortcut, |
- NULL, NULL, 0)); |
+ intptr_t result = reinterpret_cast<intptr_t>( |
+ ShellExecute(NULL, L"taskbarpin", shortcut, NULL, NULL, 0)); |
return result > 32; |
} |
@@ -333,8 +333,8 @@ bool TaskbarUnpinShortcutLink(const wchar_t* shortcut) { |
if (GetVersion() < VERSION_WIN7) |
return false; |
- int result = reinterpret_cast<int>(ShellExecute(NULL, L"taskbarunpin", |
- shortcut, NULL, NULL, 0)); |
+ intptr_t result = reinterpret_cast<intptr_t>( |
+ ShellExecute(NULL, L"taskbarunpin", shortcut, NULL, NULL, 0)); |
return result > 32; |
} |