summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/win/shortcut.cc8
-rw-r--r--base/win/win_util.cc2
2 files changed, 5 insertions, 5 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;
}
diff --git a/base/win/win_util.cc b/base/win/win_util.cc
index 59ae375..c5b06c4 100644
--- a/base/win/win_util.cc
+++ b/base/win/win_util.cc
@@ -428,7 +428,7 @@ bool DisplayVirtualKeyboard() {
NULL,
NULL,
SW_SHOW);
- return reinterpret_cast<int>(ret) > 32;
+ return reinterpret_cast<intptr_t>(ret) > 32;
}
bool DismissVirtualKeyboard() {