]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.c
Add Missing invocations to VA_END() for VA_START().
[mirror_edk2.git] / ShellPkg / Library / UefiFileHandleLib / UefiFileHandleLib.c
index 0e2f93debc27beaff64df48fa6556809b09daf23..0bee8e38992d5b601a163f2641be02c923648e54 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provides interface to EFI_FILE_HANDLE functionality.\r
 \r
-  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2006 - 2012, 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
@@ -1089,8 +1089,6 @@ FileHandlePrintLine(
   CHAR16            *Buffer;\r
   EFI_STATUS        Status;\r
 \r
-  VA_START (Marker, Format);\r
-\r
   //\r
   // Get a buffer to print into\r
   //\r
@@ -1100,7 +1098,9 @@ FileHandlePrintLine(
   //\r
   // Print into our buffer\r
   //\r
+  VA_START (Marker, Format);\r
   UnicodeVSPrint (Buffer, PcdGet16 (PcdShellPrintBufferSize), Format, Marker);\r
+  VA_END (Marker);\r
 \r
   //\r
   // Print buffer into file\r