From 3808ea2f304045ce727edcbf0eefd25cb12d2e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Sun, 20 Nov 2011 17:54:52 +0000 Subject: [PATCH] [HAL] - truncate PCI vendor id instead of casting it. MSVC chokes on it with /RTCc svn path=/trunk/; revision=54461 --- reactos/hal/halx86/legacy/bus/pcibus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/hal/halx86/legacy/bus/pcibus.c b/reactos/hal/halx86/legacy/bus/pcibus.c index a93895efdb2..00457639caa 100644 --- a/reactos/hal/halx86/legacy/bus/pcibus.c +++ b/reactos/hal/halx86/legacy/bus/pcibus.c @@ -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;