Home | History | Annotate | Download | only in Shell

Lines Matching refs:MapListItem

244   SHELL_MAP_LIST  *MapListItem;

256 MapListItem = ShellCommandFindMapItem(NewName);
260 if (MapListItem != NULL) {
261 return (MapListItem->DevicePath);
408 SHELL_MAP_LIST *MapListItem;
434 for ( MapListItem = (SHELL_MAP_LIST *)GetFirstNode(&gShellMapList.Link)
435 ; !IsNull(&gShellMapList.Link, &MapListItem->Link)
436 ; MapListItem = (SHELL_MAP_LIST *)GetNextNode(&gShellMapList.Link, &MapListItem->Link)
438 MapPathCopy = (EFI_DEVICE_PATH_PROTOCOL*)MapListItem->DevicePath;
444 PathForReturn = StrnCatGrow(&PathForReturn, &PathSize, MapListItem->MapName, 0);
2979 SHELL_MAP_LIST *MapListItem;
2989 MapListItem = ShellCommandFindMapItem(FileSystemMapping);
2990 if (MapListItem != NULL) {
2992 PathToReturn = StrnCatGrow(&PathToReturn, &Size, MapListItem->MapName, 0);
2993 PathToReturn = StrnCatGrow(&PathToReturn, &Size, MapListItem->CurrentDirectoryPath, 0);
3037 SHELL_MAP_LIST *MapListItem;
3046 MapListItem = NULL;
3076 MapListItem = ShellCommandFindMapItem(MapName);
3081 if (MapListItem != NULL) {
3082 gShellCurDir = MapListItem;
3085 MapListItem = gShellCurDir;
3088 if (MapListItem == NULL) {
3095 // now update the MapListItem's current directory
3097 if (MapListItem->CurrentDirectoryPath != NULL && DirectoryName[StrLen(DirectoryName) - 1] != L':') {
3098 FreePool(MapListItem->CurrentDirectoryPath);
3099 MapListItem->CurrentDirectoryPath = NULL;
3104 ASSERT((MapListItem->CurrentDirectoryPath == NULL && Size == 0) || (MapListItem->CurrentDirectoryPath != NULL));
3105 MapListItem->CurrentDirectoryPath = StrnCatGrow(&MapListItem->CurrentDirectoryPath, &Size, DirectoryName+StrLen(MapName), 0);
3109 ASSERT((MapListItem->CurrentDirectoryPath == NULL && Size == 0) || (MapListItem->CurrentDirectoryPath != NULL));
3110 MapListItem->CurrentDirectoryPath = StrnCatGrow(&MapListItem->CurrentDirectoryPath, &Size, DirectoryName, 0);
3112 if ((MapListItem->CurrentDirectoryPath != NULL && MapListItem->CurrentDirectoryPath[StrLen(MapListItem->CurrentDirectoryPath)-1] == L'\\') || (MapListItem->CurrentDirectoryPath == NULL)) {
3113 ASSERT((MapListItem->CurrentDirectoryPath == NULL && Size == 0) || (MapListItem->CurrentDirectoryPath != NULL));
3114 if (MapListItem->CurrentDirectoryPath != NULL) {
3115 MapListItem->CurrentDirectoryPath[StrLen(MapListItem->CurrentDirectoryPath)-1] = CHAR_NULL;
3129 MapListItem = ShellCommandFindMapItem(FileSystem);
3130 if (MapListItem == NULL) {
3134 // gShellCurDir = MapListItem;
3140 if (MapListItem->CurrentDirectoryPath != NULL) {
3141 FreePool(MapListItem->CurrentDirectoryPath);
3142 DEBUG_CODE(MapListItem->CurrentDirectoryPath = NULL;);
3144 // ASSERT((MapListItem->CurrentDirectoryPath == NULL && Size == 0) || (MapListItem->CurrentDirectoryPath != NULL));
3145 // MapListItem->CurrentDirectoryPath = StrnCatGrow(&MapListItem->CurrentDirectoryPath, &Size, FileSystem, 0);
3146 ASSERT((MapListItem->CurrentDirectoryPath == NULL && Size == 0) || (MapListItem->CurrentDirectoryPath != NULL));
3147 MapListItem->CurrentDirectoryPath = StrnCatGrow(&MapListItem->CurrentDirectoryPath, &Size, L"\\", 0);
3148 ASSERT((MapListItem->CurrentDirectoryPath == NULL && Size == 0) || (MapListItem->CurrentDirectoryPath != NULL));
3149 MapListItem->CurrentDirectoryPath = StrnCatGrow(&MapListItem->CurrentDirectoryPath, &Size, DirectoryName, 0);
3150 if (MapListItem->CurrentDirectoryPath != NULL && MapListItem->CurrentDirectoryPath[StrLen(MapListItem->CurrentDirectoryPath)-1] == L'\\') {
3151 ASSERT((MapListItem->CurrentDirectoryPath == NULL && Size == 0) || (MapListItem->CurrentDirectoryPath != NULL));
3152 MapListItem->CurrentDirectoryPath[StrLen(MapListItem->CurrentDirectoryPath)-1] = CHAR_NULL;
3160 if (MapListItem == gShellCurDir) {
3163 StrnCatGrow(&TempString, &Size, MapListItem->MapName, 0);
3165 StrnCatGrow(&TempString, &Size, MapListItem->CurrentDirectoryPath, 0);