mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Fix incorrect logic in IntVideoPortSetupInterrupt and add comment.
svn path=/trunk/; revision=33717
This commit is contained in:
parent
d543aa9e03
commit
e5b4190710
1 changed files with 10 additions and 6 deletions
|
@ -48,13 +48,17 @@ IntVideoPortSetupInterrupt(
|
||||||
|
|
||||||
DeviceExtension = (PVIDEO_PORT_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
DeviceExtension = (PVIDEO_PORT_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||||
|
|
||||||
if (ConfigInfo->BusInterruptVector == 0)
|
/*
|
||||||
ConfigInfo->BusInterruptVector = DeviceExtension->InterruptVector;
|
* MSDN documentation for VIDEO_PORT_CONFIG_INFO states: "If a miniport driver's
|
||||||
|
* HwVidFindAdapter function finds that the video adapter does not generate
|
||||||
|
* interrupts or that it cannot determine a valid interrupt vector/level for
|
||||||
|
* the adapter, HwVidFindAdapter should set both BusInterruptVector and
|
||||||
|
* BusInterruptLevel to zero.
|
||||||
|
*/
|
||||||
|
|
||||||
if (ConfigInfo->BusInterruptLevel == 0)
|
if (DriverExtension->InitializationData.HwInterrupt != NULL &&
|
||||||
ConfigInfo->BusInterruptLevel = DeviceExtension->InterruptLevel;
|
ConfigInfo->BusInterruptLevel != 0 &&
|
||||||
|
ConfigInfo->BusInterruptVector != 0)
|
||||||
if (DriverExtension->InitializationData.HwInterrupt != NULL)
|
|
||||||
{
|
{
|
||||||
ULONG InterruptVector;
|
ULONG InterruptVector;
|
||||||
KIRQL Irql;
|
KIRQL Irql;
|
||||||
|
|
Loading…
Reference in a new issue