From 6642192228361c9f86bfd5d5d964140dd9fc1c93 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 28 Nov 2023 14:44:55 +0100 Subject: [PATCH] [common,settings] fix pointer copy --- libfreerdp/common/settings_str.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libfreerdp/common/settings_str.c b/libfreerdp/common/settings_str.c index fd144dd2d..507295142 100644 --- a/libfreerdp/common/settings_str.c +++ b/libfreerdp/common/settings_str.c @@ -467,6 +467,10 @@ BOOL freerdp_settings_copy_item(rdpSettings* dst, const rdpSettings* src, SSIZE_ return freerdp_settings_set_string(dst, (FreeRDP_Settings_Keys_String)id, val); } case FREERDP_SETTINGS_TYPE_POINTER: + { + const void* val = freerdp_settings_get_pointer(src, (FreeRDP_Settings_Keys_Pointer)id); + return freerdp_settings_set_pointer(dst, (FreeRDP_Settings_Keys_Pointer)id, val); + } default: return FALSE; }