fcf8bdc SecurityPkg: stop abusing EFI_EVENT for protocol notify registration

Authored and Committed by lersek 4 years ago
    SecurityPkg: stop abusing EFI_EVENT for protocol notify registration
    
    EfiCreateProtocolNotifyEvent() takes a (VOID**) for "Registration",
    similarly to gBS->RegisterProtocolNotify(). We should pass the address of
    an actual pointer-to-VOID, and not the address of an EFI_EVENT. EFI_EVENT
    just happens to be specified as (VOID*), and has nothing to do with the
    registration.
    
    This change is a no-op in practice; it's a semantic improvement.
    
    Cc: Chao Zhang <chao.b.zhang@intel.com>
    Cc: Jian Wang <jian.j.wang@intel.com>
    Cc: Jiewen Yao <jiewen.yao@intel.com>
    Signed-off-by: Laszlo Ersek <lersek@redhat.com>
    Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
    Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
    Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>