Fixed null pointer dereference.

This commit is contained in:
Armin Novak 2014-11-17 01:19:40 +01:00
parent deef61dfd0
commit e390dd0eeb

View File

@ -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;
Stream_Write_UINT32(irp->output, Length);