Author: jgardou Date: Sun Nov 20 17:54:52 2011 New Revision: 54461
URL: http://svn.reactos.org/svn/reactos?rev=54461&view=rev Log: [HAL] - truncate PCI vendor id instead of casting it. MSVC chokes on it with /RTCc
Modified: trunk/reactos/hal/halx86/legacy/bus/pcibus.c
Modified: trunk/reactos/hal/halx86/legacy/bus/pcibus.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/legacy/bus/pcibu... ============================================================================== --- trunk/reactos/hal/halx86/legacy/bus/pcibus.c [iso-8859-1] (original) +++ trunk/reactos/hal/halx86/legacy/bus/pcibus.c [iso-8859-1] Sun Nov 20 17:54:52 2011 @@ -1188,7 +1188,7 @@ 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;