From 8be5f73255b1a3a5a3715842be1b912725ae0117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 17 Dec 2020 01:29:02 +0100 Subject: [PATCH] [SAC] Fix the HeadlessInformation.PortType checks in DriverEntry(). --- drivers/sac/driver/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/sac/driver/init.c b/drivers/sac/driver/init.c index d11e6948a3f..2a2ff4d0667 100644 --- a/drivers/sac/driver/init.c +++ b/drivers/sac/driver/init.c @@ -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 */