mirror of
https://git.proxmox.com/git/mirror_edk2
synced 2026-01-03 21:12:56 +00:00
Minor code refinement.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10785 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8194a0232c
commit
3af91e23cb
@ -2949,10 +2949,10 @@ NetLibAsciiStrToIp6 (
|
||||
LeadZeroCnt++;
|
||||
}
|
||||
} else {
|
||||
if ((Cnt == 4) && (*TempStr == '0') && (LeadZero == FALSE)) {
|
||||
if ((Cnt == 4) && (*TempStr == '0') && !LeadZero) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
if ((Cnt != 0) && (Cnt < 4) && (LeadZero == TRUE)) {
|
||||
if ((Cnt != 0) && (Cnt < 4) && LeadZero) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user