From 8c1b1fe634a233ad7570f2243027d6be8a7849a1 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Wed, 20 Oct 2021 18:47:18 +0800 Subject: ShellPkg: Add comment that ItemPtr is set after validation Add a comment to clarify that in Acpiview the ItemPtr is not set until after the FieldValidator has been called. Signed-off-by: Chris Jones Reviewed-by: Sami Mujawar Reviewed-by: Zhichao Gao --- ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ShellPkg/Library') diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h index 0b7726b..5e34a70 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/AcpiParser.h @@ -283,7 +283,9 @@ typedef struct AcpiParser { FNPTR_PRINT_FORMATTER PrintFormatter; /// Optional pointer which may be set to request the parser to update - /// a pointer to the field data. If unused this must be set to NULL. + /// a pointer to the field data. This value is set after the FieldValidator + /// has been called and therefore should not be used by the FieldValidator. + /// If unused this must be set to NULL. VOID** ItemPtr; /// Optional pointer to a field validator function. -- cgit v1.1