• Home
  • Raw
  • Download

Lines Matching refs:DestPath

305   CHAR16                    *DestPath;  in ValidateAndCopyFiles()  local
318 DestPath = NULL; in ValidateAndCopyFiles()
392 DestPath = AllocateZeroPool(PathSize); in ValidateAndCopyFiles()
394 if (DestPath == NULL || HiiOutput == NULL || HiiResultOk == NULL) { in ValidateAndCopyFiles()
395 SHELL_FREE_NON_NULL(DestPath); in ValidateAndCopyFiles()
430 StrCpyS(DestPath, PathSize / sizeof(CHAR16), Cwd); in ValidateAndCopyFiles()
431 StrCatS(DestPath, PathSize / sizeof(CHAR16), L"\\"); in ValidateAndCopyFiles()
437 if (DestPath[StrLen(DestPath)-1] != L'\\' && CleanFilePathStr[0] != L'\\') { in ValidateAndCopyFiles()
438 StrCatS(DestPath, PathSize / sizeof(CHAR16), L"\\"); in ValidateAndCopyFiles()
439 } else if (DestPath[StrLen(DestPath)-1] == L'\\' && CleanFilePathStr[0] == L'\\') { in ValidateAndCopyFiles()
440 ((CHAR16*)DestPath)[StrLen(DestPath)-1] = CHAR_NULL; in ValidateAndCopyFiles()
442 StrCatS(DestPath, PathSize/sizeof(CHAR16), CleanFilePathStr); in ValidateAndCopyFiles()
444 StrCpyS(DestPath, PathSize/sizeof(CHAR16), CleanFilePathStr); in ValidateAndCopyFiles()
459 StrCpyS(DestPath, PathSize/sizeof(CHAR16), Cwd); in ValidateAndCopyFiles()
460 StrCatS(DestPath, PathSize/sizeof(CHAR16), L"\\"); in ValidateAndCopyFiles()
466 while (PathRemoveLastItem(DestPath)); in ValidateAndCopyFiles()
467 StrCatS(DestPath, PathSize/sizeof(CHAR16), CleanFilePathStr+1); in ValidateAndCopyFiles()
468 StrCatS(DestPath, PathSize/sizeof(CHAR16), Node->FileName); in ValidateAndCopyFiles()
471 StrCpyS(DestPath, PathSize/sizeof(CHAR16), Cwd); in ValidateAndCopyFiles()
472 StrCatS(DestPath, PathSize/sizeof(CHAR16), L"\\"); in ValidateAndCopyFiles()
478 if (DestPath[StrLen(DestPath)-1] != L'\\' && CleanFilePathStr[0] != L'\\') { in ValidateAndCopyFiles()
479 StrCatS(DestPath, PathSize/sizeof(CHAR16), L"\\"); in ValidateAndCopyFiles()
480 } else if (DestPath[StrLen(DestPath)-1] == L'\\' && CleanFilePathStr[0] == L'\\') { in ValidateAndCopyFiles()
481 ((CHAR16*)DestPath)[StrLen(DestPath)-1] = CHAR_NULL; in ValidateAndCopyFiles()
483 StrCatS(DestPath, PathSize/sizeof(CHAR16), CleanFilePathStr); in ValidateAndCopyFiles()
485 StrCatS(DestPath, PathSize/sizeof(CHAR16), L"\\"); in ValidateAndCopyFiles()
487 ((CHAR16*)DestPath)[StrLen(DestPath)-1] = CHAR_NULL; in ValidateAndCopyFiles()
489 StrCatS(DestPath, PathSize/sizeof(CHAR16), Node->FileName); in ValidateAndCopyFiles()
492 StrCpyS(DestPath, PathSize/sizeof(CHAR16), CleanFilePathStr); in ValidateAndCopyFiles()
494 StrCatS(DestPath, PathSize/sizeof(CHAR16), L"\\"); in ValidateAndCopyFiles()
498 StrCatS(DestPath, PathSize/sizeof(CHAR16), Node->FileName); in ValidateAndCopyFiles()
505 if (EFI_ERROR(VerifyIntermediateDirectories(DestPath))) { in ValidateAndCopyFiles()
506 …lPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_CP_DIR_WNF), gShellLevel2HiiHandle, L"cp", DestPath); in ValidateAndCopyFiles()
512 && !EFI_ERROR(ShellIsDirectory(DestPath)) in ValidateAndCopyFiles()
513 && StrniCmp(Node->FullName, DestPath, StrLen(DestPath)) == NULL in ValidateAndCopyFiles()
519 if (StringNoCaseCompare(&Node->FullName, &DestPath) == 0) { in ValidateAndCopyFiles()
525 if ((StrniCmp(Node->FullName, DestPath, StrLen(Node->FullName)) == 0) in ValidateAndCopyFiles()
526 … && (DestPath[StrLen(Node->FullName)] == CHAR_NULL || DestPath[StrLen(Node->FullName)] == L'\\') in ValidateAndCopyFiles()
533 PathCleanUpDirectories(DestPath); in ValidateAndCopyFiles()
536 ShellPrintEx(-1, -1, HiiOutput, Node->FullName, DestPath); in ValidateAndCopyFiles()
542 ShellStatus = CopySingleFile(Node->FullName, DestPath, &Response, SilentMode, L"cp"); in ValidateAndCopyFiles()
551 SHELL_FREE_NON_NULL(DestPath); in ValidateAndCopyFiles()