[SAC] Fix the HeadlessInformation.PortType checks in DriverEntry().

This commit is contained in:
Hermès Bélusca-Maïto 2020-12-17 01:29:02 +01:00
parent 5214d2fab7
commit 8be5f73255
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -32,8 +32,8 @@ DriverEntry(IN PDRIVER_OBJECT DriverObject,
0,
&HeadlessInformation,
&InfoSize);
if ((HeadlessInformation.Serial.TerminalType != HeadlessUndefinedPortType) &&
((HeadlessInformation.Serial.TerminalType != HeadlessSerialPort) ||
if ((HeadlessInformation.PortType != HeadlessUndefinedPortType) &&
((HeadlessInformation.PortType != HeadlessSerialPort) ||
(HeadlessInformation.Serial.TerminalAttached)))
{
/* It is, so create the device */