mirror of https://github.com/acidanthera/audk.git
Add NULL parameter checking for notify function.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4791 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
383c303c49
commit
6c29550411
|
@ -734,7 +734,7 @@ WinNtGopSimpleTextInExRegisterKeyNotify (
|
||||||
LIST_ENTRY *Link;
|
LIST_ENTRY *Link;
|
||||||
WIN_NT_GOP_SIMPLE_TEXTIN_EX_NOTIFY *NewNotify;
|
WIN_NT_GOP_SIMPLE_TEXTIN_EX_NOTIFY *NewNotify;
|
||||||
|
|
||||||
if (KeyData == NULL || NotifyHandle == NULL) {
|
if (KeyData == NULL || KeyNotificationFunction == NULL || NotifyHandle == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue