//\r
// If they're the same, or if source is "above" dest on file path tree\r
//\r
- if ( StringNoCaseCompare (&DestPathWalker, &SourcePath) == 0 \r
- || StrStr(DestPathWalker, SourcePath) == DestPathWalker \r
- ) {\r
+ if ( StringNoCaseCompare (&DestPathWalker, &SourcePath) == 0 ||\r
+ ((StrStr(DestPathWalker, SourcePath) == DestPathWalker) && \r
+ (DestPathWalker[StrLen(SourcePath)] == '\\')\r
+ )\r
+ ) {\r
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_MV_INV_SUB), gShellLevel2HiiHandle);\r
FreePool(DestPathCopy);\r
return (FALSE);\r