- truncate PCI vendor id instead of casting it.
MSVC chokes on it with /RTCc

svn path=/trunk/; revision=54461
This commit is contained in:
Jérôme Gardou 2011-11-20 17:54:52 +00:00
parent 99282b754f
commit 3808ea2f30

View file

@ -1188,7 +1188,7 @@ HalpInitializePciStubs(VOID)
sizeof(ULONG))) sizeof(ULONG)))
{ {
/* Validate the vendor ID */ /* Validate the vendor ID */
if ((USHORT)VendorId != PCI_INVALID_VENDORID) if ((VendorId & 0xFFFF) != PCI_INVALID_VENDORID)
{ {
/* Set this as the maximum ID */ /* Set this as the maximum ID */
MaxPciBusNumber = i; MaxPciBusNumber = i;