diff options
author | Qiu Shumin <shumin.qiu@intel.com> | 2015-08-24 07:42:27 +0000 |
---|---|---|
committer | shenshushi <shenshushi@Edk2> | 2015-08-24 07:42:27 +0000 |
commit | ba1806251ff8ff695175b92ab5732eadbcd2f72e (patch) | |
tree | 9dbf1aa640dccc3a9e475edecb6b1f148887c3b5 /MdePkg/Include | |
parent | 29b3a74986b67e3831e405a0197e8e7e30db843d (diff) | |
download | edk2-platforms-ba1806251ff8ff695175b92ab5732eadbcd2f72e.tar.xz |
MdePkg/Library/UefiFileHandleLib: Make FileHandleReadLine return the right buffer size.
1. '\r' char will not return in buffer so buffer size should exclude the number of '\r' char.
2. When 'Truncate' is TRUE return the truncated string with 'EFI_SUCCESS' status.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18276 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include')
-rw-r--r-- | MdePkg/Include/Library/FileHandleLib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdePkg/Include/Library/FileHandleLib.h b/MdePkg/Include/Library/FileHandleLib.h index b5ac19ac85..fdbdc3ade4 100644 --- a/MdePkg/Include/Library/FileHandleLib.h +++ b/MdePkg/Include/Library/FileHandleLib.h @@ -379,6 +379,8 @@ FileHandleGetFileName ( If the position upon start is 0, then the Ascii Boolean will be set. This should be
maintained and not changed for all operations with the same file.
+ The function will not return the \r and \n character in buffer. When an empty line is
+ read a CHAR_NULL character will be returned in buffer.
@param[in] Handle FileHandle to read from.
@param[in, out] Buffer The pointer to buffer to read into.
|