mirror of https://github.com/acidanthera/audk.git
ShellPkg: fix redirection file parsing to allow spaces before filename.
signed-off-by: jcarsey reviewed-by: darylm503 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12962 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
cff7bffbb5
commit
f9aefb6a06
|
@ -2,7 +2,7 @@
|
||||||
Member functions of EFI_SHELL_PARAMETERS_PROTOCOL and functions for creation,
|
Member functions of EFI_SHELL_PARAMETERS_PROTOCOL and functions for creation,
|
||||||
manipulation, and initialization of EFI_SHELL_PARAMETERS_PROTOCOL.
|
manipulation, and initialization of EFI_SHELL_PARAMETERS_PROTOCOL.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -523,6 +523,9 @@ FixFileName (
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Copy = FileName;
|
Copy = FileName;
|
||||||
|
while(Copy[0] == L' ') {
|
||||||
|
Copy++;
|
||||||
|
}
|
||||||
if ((TempLocation = StrStr(Copy , L" ")) != NULL) {
|
if ((TempLocation = StrStr(Copy , L" ")) != NULL) {
|
||||||
TempLocation[0] = CHAR_NULL;
|
TempLocation[0] = CHAR_NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue