From 415104fb7c9469153e734ee1de088ea906e8c2be Mon Sep 17 00:00:00 2001 From: KingLuigi4932 Date: Fri, 29 Dec 2017 23:53:43 +0300 Subject: [PATCH] Update AHCI.cs --- source/Cosmos.HAL2/BlockDevice/AHCI.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Cosmos.HAL2/BlockDevice/AHCI.cs b/source/Cosmos.HAL2/BlockDevice/AHCI.cs index 3c3200d6a..e83851450 100644 --- a/source/Cosmos.HAL2/BlockDevice/AHCI.cs +++ b/source/Cosmos.HAL2/BlockDevice/AHCI.cs @@ -259,7 +259,9 @@ namespace Cosmos.HAL.BlockDevice if (xDET != DeviceDetectionStatus.DeviceDetectedWithPhy) return PortType.Nothing; - switch ((AHCISignature)xSignature >> 16) + xSignature >>= 16; + + switch ((AHCISignature)xSignature) { case AHCISignature.SATA: return PortType.SATA; case AHCISignature.SATAPI: return PortType.SATAPI;