From 4a1102c9aedce3e4244efcc822794e9cc6da4dee Mon Sep 17 00:00:00 2001 From: qwang12 Date: Wed, 21 Jan 2009 05:33:41 +0000 Subject: K8: 1) add in more ASSERT condition and updates the comment for HexStringToBuf. 2) Check the pointer returned by HiiLibGetHiiHandles. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7324 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Include/Library/IfrSupportLib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdeModulePkg/Include') diff --git a/MdeModulePkg/Include/Library/IfrSupportLib.h b/MdeModulePkg/Include/Library/IfrSupportLib.h index 1608d14ab1..e7e04ba992 100644 --- a/MdeModulePkg/Include/Library/IfrSupportLib.h +++ b/MdeModulePkg/Include/Library/IfrSupportLib.h @@ -852,6 +852,8 @@ BufToHexString ( If String has N valid hexadecimal characters for conversion, the caller must make sure Buffer is at least N/2 (if N is even) or (N+1)/2 (if N if odd) bytes. + If either Buffer, BufferSizeInBytes or String is NULL, then ASSERT (). + @param Buffer The output buffer allocated by the caller. @param BufferSizeInBytes On input, the size in bytes of Buffer. On output, it is updated to contain the size of the Buffer which is actually used for the converstion. -- cgit v1.2.3