mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 05:34:31 +02:00
ArmPkg/SemihostLib: Removed leading separator in FileName in SemihostFileOpen()
EFI Shell adds '\\' in front of the filename. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14188 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b1cab81fec
commit
8fa3caf2bc
@ -40,6 +40,11 @@ SemihostFileOpen (
|
||||
return RETURN_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
// Remove any leading separator (e.g.: '\'). EFI Shell adds one.
|
||||
if (*FileName == '\\') {
|
||||
FileName++;
|
||||
}
|
||||
|
||||
OpenBlock.FileName = FileName;
|
||||
OpenBlock.Mode = Mode;
|
||||
OpenBlock.NameLength = AsciiStrLen(FileName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user