Merge pull request #10374 from akallabeth/drive_fix

[channels,rdpdr] fix drive redirection hotplug
This commit is contained in:
akallabeth 2024-07-12 08:47:59 +02:00 committed by GitHub
commit 1033471a31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1456,14 +1456,14 @@ static UINT rdpdr_send_device_list_announce_request(rdpdrPlugin* rdpdr, BOOL use
UINT rdpdr_try_send_device_list_announce_request(rdpdrPlugin* rdpdr)
{
WINPR_ASSERT(rdpdr);
if (rdpdr->state != RDPDR_CHANNEL_STATE_USER_LOGGEDON)
if (rdpdr->state != RDPDR_CHANNEL_STATE_READY)
{
WLog_Print(rdpdr->log, WLOG_DEBUG,
"hotplug event received, but channel [RDPDR] is not ready (state %s), ignoring.",
rdpdr_state_str(rdpdr->state));
return CHANNEL_RC_OK;
}
return rdpdr_send_device_list_announce_request(rdpdr, TRUE);
return rdpdr_send_device_list_announce_request(rdpdr, rdpdr->userLoggedOn);
}
static UINT dummy_irp_response(rdpdrPlugin* rdpdr, wStream* s)