summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-08-08 14:55:10 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-08-10 10:17:11 +0800
commit54b1e0ec814d8a8ac0aea2262ba04d7567545197 (patch)
tree504f158013031fa60c85a83767c00e70b83dd217 /ShellPkg
parentd25d59cb7ee608deb60137389c2461c6d937f669 (diff)
downloadedk2-54b1e0ec814d8a8ac0aea2262ba04d7567545197.tar.gz
edk2-54b1e0ec814d8a8ac0aea2262ba04d7567545197.tar.bz2
edk2-54b1e0ec814d8a8ac0aea2262ba04d7567545197.zip
MdePkg: Enhance PathRemoveLastItem() to support "FS0:File.txt"
The original implementation only looks for very last backslash and removes the string after that. But when the path is like "FS0:File.txt" which doesn't contain backslash, the function cannot work well. The patch enhances the code to look for very last backslash or colon to support the path which doesn't contain backslash. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Tapan Shah <tapandshah@hpe.com>
Diffstat (limited to 'ShellPkg')
0 files changed, 0 insertions, 0 deletions