edk2/MdeModulePkg
Khalid Ali 8f28978843 MdeModulePkg/Core: 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
..
Application MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Bus MdeModulePkg: Mark PcdMrIovSupport obsolete - deprecated in PCIe 6.0 2026-02-25 05:03:02 +00:00
Core MdeModulePkg/Core: Increment handle key outside if block 2026-03-09 09:19:06 +00:00
Include MdeModulePkg: CpuExceptionHandlerLib: Define X86_CPU_INTERRUPT_NUM 2026-03-07 03:58:40 +00:00
Library MdeModulePkg: Add library class SafeIntLib where ArmFfaCommon.c is used 2026-03-09 03:35:31 +00:00
Logo MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
Test MdeModulePkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
Universal MdeModulePkg/TerminalDxe: Fix Backspace key for VT-UTF8 terminal type 2026-02-28 04:43:49 +00:00
MdeModulePkg.ci.yaml MdeModulePkg: Add duplicate exception for gUiAppFileGuid 2025-03-06 14:18:10 +01:00
MdeModulePkg.dec MdeModulePkg: Mark PcdMrIovSupport obsolete - deprecated in PCIe 6.0 2026-02-25 05:03:02 +00:00
MdeModulePkg.dsc MdeModulePkg: Remove ARM32 Support 2025-09-25 22:04:10 +00:00
MdeModulePkg.uni MdeModulePkg: Add platform limit for size in Resizable BAR 2026-02-25 03:40:14 +00:00
MdeModulePkgExtra.uni MdeModulePkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:08 -07:00