summaryrefslogtreecommitdiff
path: root/Nt32Pkg/WinNtGopDxe
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-04 04:31:46 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-03-04 04:31:46 +0000
commit0dc99784366897508ea0309df6e2a75f85662fcc (patch)
tree8b8220dc6325829c733c69c28d0d8aa264439e0d /Nt32Pkg/WinNtGopDxe
parentea43036162630d567798bf763c80f1a1acc1d132 (diff)
downloadedk2-platforms-0dc99784366897508ea0309df6e2a75f85662fcc.tar.xz
add check for invalid handle.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7795 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Nt32Pkg/WinNtGopDxe')
-rw-r--r--Nt32Pkg/WinNtGopDxe/WinNtGopInput.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Nt32Pkg/WinNtGopDxe/WinNtGopInput.c b/Nt32Pkg/WinNtGopDxe/WinNtGopInput.c
index be41a8e854..e9866740ce 100644
--- a/Nt32Pkg/WinNtGopDxe/WinNtGopInput.c
+++ b/Nt32Pkg/WinNtGopDxe/WinNtGopInput.c
@@ -797,7 +797,11 @@ WinNtGopSimpleTextInExUnregisterKeyNotify (
if (NotificationHandle == NULL) {
return EFI_INVALID_PARAMETER;
}
-
+
+ if (((WIN_NT_GOP_SIMPLE_TEXTIN_EX_NOTIFY *) NotificationHandle)->Signature != WIN_NT_GOP_SIMPLE_TEXTIN_EX_NOTIFY_SIGNATURE) {
+ return EFI_INVALID_PARAMETER;
+ }
+
Private = GOP_PRIVATE_DATA_FROM_TEXT_IN_EX_THIS (This);
for (Link = Private->NotifyList.ForwardLink; Link != &Private->NotifyList; Link = Link->ForwardLink) {