https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8be5f73255b1a3a5a3715…
commit 8be5f73255b1a3a5a3715842be1b912725ae0117
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Dec 17 01:29:02 2020 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Dec 27 00:51:58 2020 +0100
[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 */