edk2/UnitTestFrameworkPkg/Library/UnitTestUefiBootServicesTableLib
Khalid Ali 2691afa269 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 <khaliidcaliy@gmail.com>
2026-03-09 09:19:06 +00:00
..
UnitTestUefiBootServicesTableLib.c UnitTestFrameworkPkg: Add UnitTestUefiBootServicesTableLib 2022-11-07 16:07:33 +00:00
UnitTestUefiBootServicesTableLib.h UnitTestFrameworkPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
UnitTestUefiBootServicesTableLib.inf UnitTestFrameworkPkg: Add UnitTestUefiBootServicesTableLib 2022-11-07 16:07:33 +00:00
UnitTestUefiBootServicesTableLib.uni UnitTestFrameworkPkg: Add UnitTestUefiBootServicesTableLib 2022-11-07 16:07:33 +00:00
UnitTestUefiBootServicesTableLibEventTimer.c UnitTestFrameworkPkg: Add UnitTestUefiBootServicesTableLib 2022-11-07 16:07:33 +00:00
UnitTestUefiBootServicesTableLibImage.c UnitTestFrameworkPkg: Add UnitTestUefiBootServicesTableLib 2022-11-07 16:07:33 +00:00
UnitTestUefiBootServicesTableLibMemory.c UnitTestFrameworkPkg: Add UnitTestUefiBootServicesTableLib 2022-11-07 16:07:33 +00:00
UnitTestUefiBootServicesTableLibMisc.c UnitTestFrameworkPkg: Add UnitTestUefiBootServicesTableLib 2022-11-07 16:07:33 +00:00
UnitTestUefiBootServicesTableLibProtocol.c UnitTestFrameworkPkg: Increment handle key outside if block 2026-03-09 09:19:06 +00:00
UnitTestUefiBootServicesTableLibProtocol.h UnitTestFrameworkPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
UnitTestUefiBootServicesTableLibTpl.c UnitTestFrameworkPkg: Add UnitTestUefiBootServicesTableLib 2022-11-07 16:07:33 +00:00