mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[PARPORT] Fix I/O port length check
The Standard Parallel Port (SPP) has 3 registers, not 4: data, status, control This fixes the driver on the Compaq N600c laptop
This commit is contained in:
@@ -161,7 +161,7 @@ FdoStartDevice(IN PDEVICE_OBJECT DeviceObject,
|
||||
|
||||
if (DeviceExtension->BaseAddress == 0)
|
||||
{
|
||||
if (PartialDescriptor->u.Port.Length < 4)
|
||||
if (PartialDescriptor->u.Port.Length < 3)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
DeviceExtension->BaseAddress = PartialDescriptor->u.Port.Start.u.LowPart;
|
||||
|
||||
Reference in New Issue
Block a user