summaryrefslogtreecommitdiff
path: root/vdagent/display_setting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vdagent/display_setting.cpp')
-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;
}