From ad61eec9611ede0b74c577a3426670eb13bde7d0 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Wed, 17 Jul 2013 20:52:17 +0200 Subject: 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)) { --- vdagent/display_setting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vdagent') 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; } -- cgit v1.2.3