]> 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 9cf391d408a1cd5f5521fed0998276dccf8d0521..b6484731e92e30c1054ca3d15e5219dc37bba976 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\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
@@ -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