mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdeModulePkg: Fix a bug in GetNextTargetLun()/GetNextTarget() when two cdroms attached
Signed-off-by: erictian Reviewed-by: rsun3 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12890 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fe28761275
commit
d8982b0303
@ -2028,7 +2028,8 @@ ExtScsiPassThruGetNextTargetLun (
|
||||
|
||||
if ((DeviceInfo->Type == EfiIdeCdrom) &&
|
||||
((Target8[0] < DeviceInfo->Port) ||
|
||||
(Target8[1] < DeviceInfo->PortMultiplier))) {
|
||||
((Target8[0] == DeviceInfo->Port) &&
|
||||
(Target8[1] < DeviceInfo->PortMultiplier)))) {
|
||||
Target8[0] = (UINT8)DeviceInfo->Port;
|
||||
Target8[1] = (UINT8)DeviceInfo->PortMultiplier;
|
||||
goto Exit;
|
||||
@ -2366,7 +2367,8 @@ ExtScsiPassThruGetNextTarget (
|
||||
|
||||
if ((DeviceInfo->Type == EfiIdeCdrom) &&
|
||||
((Target8[0] < DeviceInfo->Port) ||
|
||||
(Target8[1] < DeviceInfo->PortMultiplier))) {
|
||||
((Target8[0] == DeviceInfo->Port) &&
|
||||
(Target8[1] < DeviceInfo->PortMultiplier)))) {
|
||||
Target8[0] = (UINT8)DeviceInfo->Port;
|
||||
Target8[1] = (UINT8)DeviceInfo->PortMultiplier;
|
||||
goto Exit;
|
||||
|
Loading…
x
Reference in New Issue
Block a user