mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[SCSIPORT]
- Fix a regression from r56863. New logic is: the requested data size is sizeof(ULONG), so if the result read is less than that - continue to the next slot. Thanks to SomeGuy for pointing out the problem. See issue #7147 for more details. svn path=/trunk/; revision=56907
This commit is contained in:
parent
048094c59e
commit
4c86cb1642
1 changed files with 1 additions and 1 deletions
|
@ -2351,7 +2351,7 @@ SpiGetPciConfigData(IN PDRIVER_OBJECT DriverObject,
|
|||
return FALSE;
|
||||
|
||||
/* Check if result is PCI_INVALID_VENDORID or too small */
|
||||
if ((DataSize < (ULONG)PCI_COMMON_HDR_LENGTH) ||
|
||||
if ((DataSize < sizeof(ULONG)) ||
|
||||
(PciConfig.VendorID == PCI_INVALID_VENDORID))
|
||||
{
|
||||
/* Continue to try the next function */
|
||||
|
|
Loading…
Reference in a new issue