summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-07-17 20:52:17 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-07-17 20:52:17 +0200
commitad61eec9611ede0b74c577a3426670eb13bde7d0 (patch)
treed81ab86310c0859a7b5d5adad6ab0e17bae64842 /vdagent
parentfc1de85b499759576fa52dfd20496bfb887c8295 (diff)
Fix cast BOOL->PVOID warning
vdagent/display_setting.cpp:469:50: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] if (!SystemParametersInfo(action, 0, (PVOID)param, 0)) {
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/display_setting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagent/display_setting.cpp b/vdagent/display_setting.cpp
index fdf5a31..1ec7397 100644
--- a/vdagent/display_setting.cpp
+++ b/vdagent/display_setting.cpp
@@ -466,7 +466,7 @@ bool DisplaySetting::reload_win_animation(HKEY desktop_reg_key)
bool DisplaySetting::set_bool_system_parameter_info(int action, BOOL param)
{
- if (!SystemParametersInfo(action, 0, (PVOID)param, 0)) {
+ if (!SystemParametersInfo(action, 0, (PVOID)(uintptr_t)param, 0)) {
vd_printf("SystemParametersInfo %d: failed %lu", action, GetLastError());
return false;
}