]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/Dxe/EfiDriverLib/Handle.c
Add Missing invocations to VA_END() for VA_START().
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / Dxe / EfiDriverLib / Handle.c
index 837c1491ee36b17a015988758bee41c35942e20f..b6484731e92e30c1054ca3d15e5219dc37bba976 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2004, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2004 - 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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -71,6 +71,7 @@ Returns:
   AnInterface = NULL;\r
   VA_START (args, Interface);\r
   ProtocolFirst = VA_ARG (args, EFI_GUID *);\r
+  VA_END (args);\r
 \r
   //\r
   // Get list of all handles that support the first protocol.\r
@@ -146,6 +147,8 @@ Returns:
                           );\r
         }\r
 \r
+        VA_END (args);\r
+        \r
         goto lbl_out;\r
       }\r
 \r
@@ -163,6 +166,7 @@ Returns:
       }\r
     }\r
 \r
+    VA_END (args);\r
   }\r
 \r
   //\r