]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Image/ImageFile.c
Update to fix minor coding style issues.
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Image / ImageFile.c
index 7cb2576c4f501d7b3e40d6247db6155d1a4bd1b1..e78b88d608d8e9e3dbd2ea359cb637de598cb5eb 100644 (file)
@@ -1,8 +1,7 @@
 /** @file\r
-  \r
-  Handle services to image file. \r
-   \r
-Copyright (c) 2006 - 2008, Intel Corporation\r
+  Handle services to image file.\r
+\r
+Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
 All rights reserved. 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
@@ -467,7 +466,7 @@ CoreGrowBuffer (
   //\r
   // If there's an error, free the buffer\r
   //\r
-  if ((!TryAgain) && (EFI_ERROR (*Status)) && (*Buffer)) {\r
+  if ((!TryAgain) && (EFI_ERROR (*Status)) && (*Buffer != NULL)) {\r
     CoreFreePool (*Buffer);\r
     *Buffer = NULL;\r
   }\r