]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Needed to fix defaulting / to be \ as it is required by EFI Simple File System.
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Feb 2010 01:09:59 +0000 (01:09 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Feb 2010 01:09:59 +0000 (01:09 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9959 6f19259b-4bc3-4df7-8a09-765794883524

EmbeddedPkg/Library/EfiFileLib/EfiFileLib.c

index c58d21e8200e06a2386a0ffc142564b5faf3dd2f..a956e610fc044f50e7260895b42b0d4cec39efbf 100644 (file)
@@ -686,7 +686,7 @@ EfiOpen (
       AsciiStrCpy (CwdPlusPathName, gCwd);
       StrLen = AsciiStrLen (gCwd);
       if ((*PathName != '/') && (*PathName != '\\') && (gCwd[StrLen-1] != '/') && (gCwd[StrLen-1] != '\\')) {
-        AsciiStrCat (CwdPlusPathName, "/");
+        AsciiStrCat (CwdPlusPathName, "\\");
       }
     }
     
@@ -715,7 +715,7 @@ EfiOpen (
   File->FileName = &File->DeviceName[FileStart];
   if (File->FileName[0] == '\0') {
     // if it is just a file name use / as root
-    File->FileName = "/";
+    File->FileName = "\\";
   } 
 
   //