mirror of
https://github.com/reactos/reactos.git
synced 2026-09-11 20:32:22 +08:00
[HAL]
- truncate PCI vendor id instead of casting it. MSVC chokes on it with /RTCc svn path=/trunk/; revision=54461
This commit is contained in:
@@ -1188,7 +1188,7 @@ HalpInitializePciStubs(VOID)
|
||||
sizeof(ULONG)))
|
||||
{
|
||||
/* Validate the vendor ID */
|
||||
if ((USHORT)VendorId != PCI_INVALID_VENDORID)
|
||||
if ((VendorId & 0xFFFF) != PCI_INVALID_VENDORID)
|
||||
{
|
||||
/* Set this as the maximum ID */
|
||||
MaxPciBusNumber = i;
|
||||
|
||||
Reference in New Issue
Block a user