mirror of
https://github.com/Dasharo/edk2-upstream.git
synced 2026-06-13 19:16:19 -07:00
It's not a proper approach when dealing the return string of HiiGetString function with ASSERT on REALEASE or NOOPT mode. This patch add a check for NewString before calling RegisterHotKey() for the case. Signed-off-by: Qihang Gao <gaoqihang@loongson.cn>