summaryrefslogtreecommitdiffstats
path: root/base/win/shortcut.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/win/shortcut.cc')
-rw-r--r--base/win/shortcut.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/win/shortcut.cc b/base/win/shortcut.cc
index 207fdbe..f8b2182 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;
}