Commit 2691afa
UnitTestFrameworkPkg: Increment handle key outside if block
Fixes: #11113
Currently, the global handle key and key inside handle structure is
incremented only when a new handle is allocated for protocol interface
to be installed.
However, when caller already supplies a handle gHandleDatabaseKey never
get incremented.
Move handle key incremental outside if block, just below the else
statement which allows gHandleDatabaseKey to always incremented whether
handle is supplied or not.
Signed-off-by: Khalid Ali <[email protected]>1 parent 8f28978 commit 2691afa
1 file changed
Lines changed: 6 additions & 6 deletions
File tree
- UnitTestFrameworkPkg/Library/UnitTestUefiBootServicesTableLib
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | 588 | | |
595 | 589 | | |
596 | 590 | | |
| |||
604 | 598 | | |
605 | 599 | | |
606 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| |||
0 commit comments