]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/EfiLdrImage/EfiLdrImage.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 / EfiLdrImage / EfiLdrImage.c
index f83c532b25641461987c88f02924c0369085f3a0..a76102cbb3511a529e227e9fbb1822a6b05bd5ff 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 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
@@ -84,7 +84,7 @@ Returns:
 --*/\r
 {\r
   printf ("%s v%d.%d %s -Utility to break a file into two pieces at the request offset.\n", UTILITY_NAME, UTILITY_MAJOR_VERSION, UTILITY_MINOR_VERSION, __BUILD_VERSION);\r
-  printf ("Copyright (c) 1999-2010 Intel Corporation. All rights reserved.\n");\r
+  printf ("Copyright (c) 1999-2014 Intel Corporation. All rights reserved.\n");\r
 }\r
 \r
 VOID\r
@@ -270,7 +270,7 @@ Returns:
     return STATUS_ERROR;\r
   }\r
 \r
-  fpOut = fopen(OutputFileName, "w+b");\r
+  fpOut = fopen (LongFilePath (OutputFileName), "w+b");\r
   if (!fpOut) {\r
     Error (NULL, 0, 0001, "Could not open output file", OutputFileName);\r
     return STATUS_ERROR;\r
@@ -294,7 +294,7 @@ Returns:
     //\r
     // Copy the content of PeImage file to output file\r
     //\r
-    fpIn = fopen (InputFileNames[i], "rb");\r
+    fpIn = fopen (LongFilePath (InputFileNames[i]), "rb");\r
     if (!fpIn) {\r
       Error (NULL, 0, 0001, "Could not open input file", InputFileNames[i]);\r
       fclose (fpOut);\r