]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenFv/GenFv.c
There is a limitation on WINDOWS OS for the length of entire file path can’t be large...
[mirror_edk2.git] / BaseTools / Source / C / GenFv / GenFv.c
index 8f837d2695f593ebaebd0dcc7184ee6e81704a74..56c52b850f646c050383ba59d4d1b59848088364 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2014, 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
@@ -97,7 +97,7 @@ Returns:
   //\r
   // Copyright declaration\r
   // \r
-  fprintf (stdout, "Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.\n\n");\r
+  fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");\r
 \r
   //\r
   // Details Option\r
@@ -603,7 +603,7 @@ Returns:
     if (OutFileName == NULL) {\r
       FpFile = stdout;\r
     } else {\r
-      FpFile = fopen (OutFileName, "w");\r
+      FpFile = fopen (LongFilePath (OutFileName), "w");\r
       if (FpFile == NULL) {\r
         Error (NULL, 0, 0001, "Error opening file", OutFileName);\r
         return STATUS_ERROR;\r
@@ -672,7 +672,7 @@ Returns:
   //  update boot driver address and runtime driver address in address file\r
   //\r
   if (Status == EFI_SUCCESS && AddrFileName != NULL && mFvBaseAddressNumber > 0) {\r
-    FpFile = fopen (AddrFileName, "w");\r
+    FpFile = fopen (LongFilePath (AddrFileName), "w");\r
     if (FpFile == NULL) {\r
       Error (NULL, 0, 0001, "Error opening file", AddrFileName);\r
       return STATUS_ERROR;\r