diff --git a/channels/location/client/location_main.c b/channels/location/client/location_main.c index 516cc4131..e031a976b 100644 --- a/channels/location/client/location_main.c +++ b/channels/location/client/location_main.c @@ -335,7 +335,8 @@ static UINT location_send(LocationClientContext* context, LOCATION_PDUTYPE type, IWTSVirtualChannel* channel = cb->channel; WINPR_ASSERT(channel); - LOCATION_CALLBACK* callback = (LOCATION_CALLBACK*)loc->baseDynPlugin.channel_callbacks; + const LOCATION_CALLBACK* callback = + (const LOCATION_CALLBACK*)loc->baseDynPlugin.channel_callbacks; WINPR_ASSERT(callback); UINT32 res = ERROR_INTERNAL_ERROR;