Fixed -Wunused-but-set-variable

This commit is contained in:
Armin Novak 2022-11-21 08:41:02 +01:00 committed by Martin Fleisz
parent b56b09840a
commit 0a8eaf753e

View File

@ -533,14 +533,10 @@ void WTSVirtualChannelManagerGetFileDescriptor(HANDLE hServer, void** fds, int*
BOOL WTSVirtualChannelManagerOpen(HANDLE hServer)
{
WTSVirtualChannelManager* vcm = (WTSVirtualChannelManager*)hServer;
const freerdp_peer* client;
if (!vcm)
return FALSE;
WINPR_ASSERT(vcm->client);
client = vcm->client;
if (vcm->drdynvc_state == DRDYNVC_STATE_NONE)
{
rdpPeerChannel* channel;