]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiLib/Console.c
Minor grammatical work--mostly adding periods. Items with ONLY period added did...
[mirror_edk2.git] / MdePkg / Library / UefiLib / Console.c
index 6157dac450332d93018ed6dc4488a39872554689..5a7684ecff585d9e79dc24b291fbc27088e26028 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
   This module provide help function for displaying unicode string.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
-  http://opensource.org/licenses/bsd-license.php                                            \r
+  http://opensource.org/licenses/bsd-license.php.                                            \r
 \r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
@@ -248,13 +248,13 @@ GetGlyphWidth (
 /**\r
   Computes the display length of a Null-terminated Unicode String.\r
 \r
-  This function computes and returns the display length of the Null-terminated Unicode\r
-  string specified by String.  If String is NULL then 0 is returned. If any of the widths\r
-  of the Unicode characters in String can not be determined, then 0 is returned. The display\r
-  width of String can be computed by summing the display widths of each Unicode character\r
-  in String.  Unicode characters that are narrow glyphs have a width of 1, and Unicode\r
-  characters that are width glyphs have a width of 2. \r
-  If String is not aligned on a 16-bit boundary, then ASSERT().\r
+  This function computes and returns the display length of the Null-terminated \r
+  Unicode string specified by String.  If String is NULL then 0 is returned. If \r
+  any of the widths of the Unicode characters in String can not be determined, \r
+  then 0 is returned. The display width of String can be computed by summing the \r
+  display widths of each Unicode character in String.  Unicode characters that \r
+  are narrow glyphs have a width of 1, and Unicode characters that are width glyphs \r
+  have a width of 2.  If String is not aligned on a 16-bit boundary, then ASSERT().\r
 \r
   @param  String      A pointer to a Null-terminated Unicode string.\r
 \r
@@ -392,6 +392,7 @@ CreatePopUp (
   // Allocate a buffer for a single line of the popup with borders and a Null-terminator\r
   //\r
   Line = AllocateZeroPool ((MaxLength + 3) * sizeof (CHAR16));\r
+  ASSERT (Line != NULL);\r
 \r
   //\r
   // Draw top of popup box   \r