Remove failed redirected device from list

This commit is contained in:
Armin Novak 2021-11-30 09:10:18 +01:00 committed by akallabeth
parent 223da39eac
commit b598a7b2a3

View File

@ -1565,6 +1565,9 @@ static UINT rdpdr_process_receive(rdpdrPlugin* rdpdr, wStream* s)
{
Stream_Read_UINT32(s, deviceId);
Stream_Read_UINT32(s, status);
if (status != 0)
devman_unregister_device(rdpdr->devman, (void*)((size_t)deviceId));
error = CHANNEL_RC_OK;
}