From d945804c339d51ed0c3a9f72f4b0104703ed1c70 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Thu, 1 Apr 2004 17:29:53 +0000 Subject: [PATCH] Added MediaChangeNoMedia on/off svn path=/trunk/; revision=8943 --- reactos/drivers/storage/class2/class2.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/storage/class2/class2.c b/reactos/drivers/storage/class2/class2.c index 12852fe694a..2d4f399977f 100644 --- a/reactos/drivers/storage/class2/class2.c +++ b/reactos/drivers/storage/class2/class2.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: class2.c,v 1.51 2004/03/31 03:34:55 jimtabor Exp $ +/* $Id: class2.c,v 1.52 2004/04/01 17:29:53 jimtabor Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -1172,6 +1172,13 @@ ScsiClassInterpretSenseInfo(IN PDEVICE_OBJECT DeviceObject, { case SCSI_ADSENSE_MEDIUM_CHANGED: DPRINT("SCSI_ADSENSE_MEDIUM_CHANGED\n"); + if(DeviceExtension->MediaChangeEvent != NULL) + { + KeSetEvent(DeviceExtension->MediaChangeEvent, + 0, + FALSE); + DeviceExtension->MediaChangeNoMedia = FALSE; + } break; case SCSI_ADSENSE_BUS_RESET: