mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00: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:
parent
99282b754f
commit
3808ea2f30
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue