Fixed const cast warning

This commit is contained in:
Armin Novak 2022-02-01 08:22:51 +01:00 committed by akallabeth
parent a403848e61
commit c27f1b41f9

View File

@ -1132,7 +1132,13 @@ static BOOL freerdp_settings_set_pointer_len_(rdpSettings* settings, size_t id,
const void* freerdp_settings_get_pointer(const rdpSettings* settings, size_t id)
{
return freerdp_settings_get_pointer_writable(settings, id);
union
{
const rdpSettings* pc;
rdpSettings* p;
} cnv;
cnv.pc = settings;
return freerdp_settings_get_pointer_writable(cnv.p, id);
}
BOOL freerdp_settings_set_pointer_len(rdpSettings* settings, size_t id, const void* data,