Commit in reactos/drivers/video/videoprt on MAIN
dispatch.c+2-21.4 -> 1.5
- Fixed the open counter in IntVideoPortDispatchClose.

reactos/drivers/video/videoprt
dispatch.c 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- dispatch.c	8 Apr 2004 15:36:36 -0000	1.4
+++ dispatch.c	18 Apr 2004 12:59:14 -0000	1.5
@@ -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 @@
    DPRINT("IntVideoPortDispatchClose\n");
 
    DeviceExtension = (PVIDEO_PORT_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
-   if (DeviceExtension->DeviceOpened > 1 &&
+   if (DeviceExtension->DeviceOpened >= 1 &&
        InterlockedDecrement(&DeviceExtension->DeviceOpened) == 0)
    {
       ResetDisplayParametersDeviceExtension = DeviceExtension;
CVSspam 0.2.8