mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
Needed to fix defaulting / to be \ as it is required by EFI Simple File System.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9959 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
16ccac42cf
commit
e83c843bbd
@ -686,7 +686,7 @@ EfiOpen (
|
|||||||
AsciiStrCpy (CwdPlusPathName, gCwd);
|
AsciiStrCpy (CwdPlusPathName, gCwd);
|
||||||
StrLen = AsciiStrLen (gCwd);
|
StrLen = AsciiStrLen (gCwd);
|
||||||
if ((*PathName != '/') && (*PathName != '\\') && (gCwd[StrLen-1] != '/') && (gCwd[StrLen-1] != '\\')) {
|
if ((*PathName != '/') && (*PathName != '\\') && (gCwd[StrLen-1] != '/') && (gCwd[StrLen-1] != '\\')) {
|
||||||
AsciiStrCat (CwdPlusPathName, "/");
|
AsciiStrCat (CwdPlusPathName, "\\");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -715,7 +715,7 @@ EfiOpen (
|
|||||||
File->FileName = &File->DeviceName[FileStart];
|
File->FileName = &File->DeviceName[FileStart];
|
||||||
if (File->FileName[0] == '\0') {
|
if (File->FileName[0] == '\0') {
|
||||||
// if it is just a file name use / as root
|
// if it is just a file name use / as root
|
||||||
File->FileName = "/";
|
File->FileName = "\\";
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user