drive: Fix double free in client drive channel

This commit is contained in:
Martin Fleisz
2023-07-05 11:47:21 +02:00
committed by akallabeth
parent 4c862892b4
commit c88c777482

View File

@@ -247,7 +247,7 @@ static UINT drive_process_irp_close(DRIVE_DEVICE* drive, IRP* irp)
irp->IoStatus = STATUS_UNSUCCESSFUL;
else
{
ListDictionary_Remove(drive->files, key);
ListDictionary_Take(drive->files, key);
if (drive_file_free(file))
irp->IoStatus = STATUS_SUCCESS;