[common,settings] fix pointer copy

This commit is contained in:
Armin Novak 2023-11-28 14:44:55 +01:00 committed by Martin Fleisz
parent 5d40fb34e7
commit 6642192228

View File

@ -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;
}