]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GenPage/GenPage.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 / GenPage / GenPage.c
index 78047ba9bee5184b0a755354c8cc95e9922486f7..b6a5d01e3ea0e20f6ef347daec5276a86422ae70 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2013, 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
@@ -243,13 +243,13 @@ return:
   //\r
   // Open files\r
   //\r
-  PageFile = fopen (PageFileName, "w+b");\r
+  PageFile = fopen (LongFilePath (PageFileName), "w+b");\r
   if (PageFile == NULL) {\r
     Error (NoPageFileName, 0, 0x4002, "Invalid parameter option", "Output File %s open failure", PageFileName);\r
     return -1;\r
   }\r
 \r
-  NoPageFile = fopen (NoPageFileName, "r+b");\r
+  NoPageFile = fopen (LongFilePath (NoPageFileName), "r+b");\r
   if (NoPageFile == NULL) {\r
     Error (NoPageFileName, 0, 0x4002, "Invalid parameter option", "Input File %s open failure", NoPageFileName);\r
     fclose (PageFile);\r