diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-07-17 20:52:17 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-07-17 20:52:17 +0200 |
commit | ad61eec9611ede0b74c577a3426670eb13bde7d0 (patch) | |
tree | d81ab86310c0859a7b5d5adad6ab0e17bae64842 /vdagent | |
parent | fc1de85b499759576fa52dfd20496bfb887c8295 (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.cpp | 2 |
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; } |