From 158e788f78c720ccbe9b98d68b787dfe0b588a85 Mon Sep 17 00:00:00 2001 From: ydong10 Date: Tue, 11 Sep 2012 10:26:44 +0000 Subject: [PATCH] Enhance the comments. Signed-off-by: Dong Eric Reviewed-by: Ye Ting git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13715 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdePkg/Library/BasePeCoffLib/BasePeCoff.c b/MdePkg/Library/BasePeCoffLib/BasePeCoff.c index a51320b037..e1b4cb6567 100644 --- a/MdePkg/Library/BasePeCoffLib/BasePeCoff.c +++ b/MdePkg/Library/BasePeCoffLib/BasePeCoff.c @@ -1718,6 +1718,8 @@ PeCoffLoaderRelocateImageForRuntime ( PE/COFF image starting at byte offset FileOffset into the buffer specified by Buffer. The size of the buffer actually read is returned in ReadSize. + The caller must make sure the FileOffset and ReadSize within the file scope. + If FileHandle is NULL, then ASSERT(). If ReadSize is NULL, then ASSERT(). If Buffer is NULL, then ASSERT().