Fixed null pointer dereference.
This commit is contained in:
parent
deef61dfd0
commit
e390dd0eeb
@ -346,7 +346,7 @@ static void drive_process_irp_set_information(DRIVE_DEVICE* drive, IRP* irp)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file->is_dir && !dir_empty(file->fullpath))
|
if (file && file->is_dir && !dir_empty(file->fullpath))
|
||||||
irp->IoStatus = STATUS_DIRECTORY_NOT_EMPTY;
|
irp->IoStatus = STATUS_DIRECTORY_NOT_EMPTY;
|
||||||
|
|
||||||
Stream_Write_UINT32(irp->output, Length);
|
Stream_Write_UINT32(irp->output, Length);
|
||||||
|
Loading…
Reference in New Issue
Block a user