Add Current working directory support to the library
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10333 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -606,7 +606,7 @@ EblFvFileDevicePath (
|
||||
Status = File->Fv->ReadSection (
|
||||
File->Fv,
|
||||
&File->FvNameGuid,
|
||||
OpenMode,
|
||||
(EFI_SECTION_TYPE)OpenMode,
|
||||
0,
|
||||
&Section,
|
||||
&File->Size,
|
||||
@ -782,7 +782,7 @@ EfiOpen (
|
||||
if (PathName[Index] == ':') {
|
||||
// Support fv0:\DxeCore:0x10
|
||||
// This means open the PE32 Section of the file
|
||||
ModifiedSectionType = AsciiStrHexToUintn (&PathName[Index + 1]);
|
||||
ModifiedSectionType = (EFI_SECTION_TYPE)AsciiStrHexToUintn (&PathName[Index + 1]);
|
||||
PathName[Index] = '\0';
|
||||
}
|
||||
}
|
||||
@ -1729,13 +1729,6 @@ EfiSetCwd (
|
||||
if (gCwd == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
AsciiStrCpy (gCwd, File->DeviceName);
|
||||
if (File->FileName == NULL) {
|
||||
AsciiStrCat (gCwd, ":\\");
|
||||
} else {
|
||||
AsciiStrCat (gCwd, ":");
|
||||
AsciiStrCat (gCwd, File->FileName);
|
||||
}
|
||||
|
||||
EfiClose (File);
|
||||
if (Path != Cwd) {
|
||||
|
Reference in New Issue
Block a user