[channels,location] fix cast warning

This commit is contained in:
akallabeth 2024-09-09 15:14:26 +02:00
parent c1918ac189
commit 674e84cbf3
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

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