Remove useless test

svn path=/trunk/; revision=31182
This commit is contained in:
Hervé Poussineau 2007-12-12 12:08:11 +00:00
parent f65c950373
commit 95e9a03075

View file

@ -1,7 +1,7 @@
/* /*
* VideoPort driver * VideoPort driver
* *
* Copyright (C) 2002, 2003, 2004 ReactOS Team * Copyright (C) ReactOS Team
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public * modify it under the terms of the GNU Library General Public
@ -18,7 +18,6 @@
* If not, write to the Free Software Foundation, * If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Id: videoprt.c 29323 2007-10-01 08:14:24Z fireball $
*/ */
@ -669,15 +668,13 @@ VideoPortInitialize(
return STATUS_UNSUCCESSFUL; return STATUS_UNSUCCESSFUL;
} }
/* add no PNP bus here, add more bus type if it needed */ /* We can't check HwInitializationData->AdapterInterfaceType to know if
* we have to use legacy detection, as MSDN states that this member is
if ( (HwInitializationData->AdapterInterfaceType == InterfaceTypeUndefined) || * ignored by videoprt and should remain zero-initialized.
(HwInitializationData->AdapterInterfaceType == Internal) ) * Force legacy detection, so NT4 drivers will still work on ReactOS.
* WARNING: this will cause all Plug-and-Play IRPs to fail.
{ */
DPRINT1("No PNP Videocard .\n"); LegacyDetection = TRUE;
LegacyDetection = TRUE;
}
DriverObject->MajorFunction[IRP_MJ_CREATE] = IntVideoPortDispatchOpen; DriverObject->MajorFunction[IRP_MJ_CREATE] = IntVideoPortDispatchOpen;
DriverObject->MajorFunction[IRP_MJ_CLOSE] = IntVideoPortDispatchClose; DriverObject->MajorFunction[IRP_MJ_CLOSE] = IntVideoPortDispatchClose;