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
return RETURN_INVALID_PARAMETER;\r
}\r
\r
+ // Remove any leading separator (e.g.: '\'). EFI Shell adds one.\r
+ if (*FileName == '\\') {\r
+ FileName++;\r
+ }\r
+\r
OpenBlock.FileName = FileName;\r
OpenBlock.Mode = Mode;\r
OpenBlock.NameLength = AsciiStrLen(FileName);\r