From 4debbe40cc641655672c4521dedfe3c9fc095a32 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 18 Apr 2004 12:59:14 +0000 Subject: [PATCH] - Fixed the open counter in IntVideoPortDispatchClose. svn path=/trunk/; revision=9182 --- reactos/drivers/video/videoprt/dispatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/video/videoprt/dispatch.c b/reactos/drivers/video/videoprt/dispatch.c index 96b684f209d..8c4b27da836 100644 --- a/reactos/drivers/video/videoprt/dispatch.c +++ b/reactos/drivers/video/videoprt/dispatch.c @@ -18,7 +18,7 @@ * If not, write to the Free Software Foundation, * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: dispatch.c,v 1.4 2004/04/08 15:36:36 gvg Exp $ + * $Id: dispatch.c,v 1.5 2004/04/18 12:59:14 hbirr Exp $ */ #include "videoprt.h" @@ -174,7 +174,7 @@ IntVideoPortDispatchClose( DPRINT("IntVideoPortDispatchClose\n"); DeviceExtension = (PVIDEO_PORT_DEVICE_EXTENSION)DeviceObject->DeviceExtension; - if (DeviceExtension->DeviceOpened > 1 && + if (DeviceExtension->DeviceOpened >= 1 && InterlockedDecrement(&DeviceExtension->DeviceOpened) == 0) { ResetDisplayParametersDeviceExtension = DeviceExtension;