mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:55:55 +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;
|
return FALSE;
|
||||||
|
|
||||||
/* Check if result is PCI_INVALID_VENDORID or too small */
|
/* 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))
|
(PciConfig.VendorID == PCI_INVALID_VENDORID))
|
||||||
{
|
{
|
||||||
/* Continue to try the next function */
|
/* Continue to try the next function */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue