mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Fixed the open counter in IntVideoPortDispatchClose.
svn path=/trunk/; revision=9182
This commit is contained in:
parent
331cdb2fcd
commit
4debbe40cc
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue