]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix UEFI Boot Service CreateEvent() to follow UEFI Specification with respect to...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Aug 2008 23:54:52 +0000 (23:54 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Aug 2008 23:54:52 +0000 (23:54 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5606 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Core/Dxe/Event/Event.c

index e8d20c1161d344bfe8ce31757531682b6612b770..5cf54199edb451e43d5eb0d1c9454e84ed35f527 100644 (file)
@@ -305,7 +305,7 @@ CoreCreateEventEx (
   INTN            Index;\r
 \r
 \r
-  if ((Event == NULL) || (NotifyTpl == TPL_APPLICATION)) {\r
+  if (Event == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
@@ -358,7 +358,7 @@ CoreCreateEventEx (
     // Check for an invalid NotifyFunction or NotifyTpl\r
     //\r
     if ((NotifyFunction == NULL) ||\r
-        (NotifyTpl < TPL_APPLICATION) ||\r
+        (NotifyTpl <= TPL_APPLICATION) ||\r
        (NotifyTpl >= TPL_HIGH_LEVEL)) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r