2003-08-09 16:32:26 +00:00
|
|
|
/*
|
|
|
|
* ReactOS kernel
|
|
|
|
* Copyright (C) 2003 ReactOS Team
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2009-10-27 10:34:16 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2003-08-09 16:32:26 +00:00
|
|
|
*/
|
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS text-mode setup
|
2015-09-13 16:40:36 +00:00
|
|
|
* FILE: base/setup/usetup/fslist.c
|
2003-08-09 16:32:26 +00:00
|
|
|
* PURPOSE: Filesystem list functions
|
|
|
|
* PROGRAMMER: Eric Kohl
|
|
|
|
* Casper S. Hornstrup (chorns@users.sourceforge.net)
|
|
|
|
*/
|
|
|
|
|
2006-08-31 09:13:03 +00:00
|
|
|
#include "usetup.h"
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2010-06-07 21:38:49 +00:00
|
|
|
#define NDEBUG
|
2005-06-20 22:49:45 +00:00
|
|
|
#include <debug.h>
|
2003-08-09 16:32:26 +00:00
|
|
|
|
|
|
|
/* FUNCTIONS ****************************************************************/
|
|
|
|
|
2006-11-10 21:00:24 +00:00
|
|
|
VOID
|
|
|
|
FS_AddProvider(
|
2006-09-07 22:42:28 +00:00
|
|
|
IN OUT PFILE_SYSTEM_LIST List,
|
2015-06-12 21:51:57 +00:00
|
|
|
IN LPCWSTR FileSystemName,
|
2006-09-07 22:42:28 +00:00
|
|
|
IN FORMATEX FormatFunc,
|
|
|
|
IN CHKDSKEX ChkdskFunc)
|
|
|
|
{
|
|
|
|
PFILE_SYSTEM_ITEM Item;
|
|
|
|
|
|
|
|
Item = (PFILE_SYSTEM_ITEM)RtlAllocateHeap(ProcessHeap, 0, sizeof(FILE_SYSTEM_ITEM));
|
|
|
|
if (!Item)
|
|
|
|
return;
|
|
|
|
|
2015-06-12 21:51:57 +00:00
|
|
|
Item->FileSystemName = FileSystemName;
|
2006-09-07 22:42:28 +00:00
|
|
|
Item->FormatFunc = FormatFunc;
|
|
|
|
Item->ChkdskFunc = ChkdskFunc;
|
2014-07-06 12:33:11 +00:00
|
|
|
Item->QuickFormat = TRUE;
|
2006-09-07 22:42:28 +00:00
|
|
|
InsertTailList(&List->ListHead, &Item->ListEntry);
|
|
|
|
|
|
|
|
if (!FormatFunc)
|
|
|
|
return;
|
|
|
|
|
|
|
|
Item = (PFILE_SYSTEM_ITEM)RtlAllocateHeap(ProcessHeap, 0, sizeof(FILE_SYSTEM_ITEM));
|
|
|
|
if (!Item)
|
|
|
|
return;
|
|
|
|
|
2015-06-12 21:51:57 +00:00
|
|
|
Item->FileSystemName = FileSystemName;
|
2006-09-07 22:42:28 +00:00
|
|
|
Item->FormatFunc = FormatFunc;
|
|
|
|
Item->ChkdskFunc = ChkdskFunc;
|
2014-07-06 12:33:11 +00:00
|
|
|
Item->QuickFormat = FALSE;
|
2006-09-07 22:42:28 +00:00
|
|
|
InsertTailList(&List->ListHead, &Item->ListEntry);
|
|
|
|
}
|
|
|
|
|
2014-05-12 14:17:37 +00:00
|
|
|
|
2016-02-28 16:01:54 +00:00
|
|
|
PFILE_SYSTEM_ITEM
|
|
|
|
GetFileSystemByName(
|
|
|
|
IN PFILE_SYSTEM_LIST List,
|
|
|
|
IN LPWSTR FileSystemName)
|
|
|
|
{
|
|
|
|
PLIST_ENTRY ListEntry;
|
|
|
|
PFILE_SYSTEM_ITEM Item;
|
|
|
|
|
|
|
|
ListEntry = List->ListHead.Flink;
|
|
|
|
while (ListEntry != &List->ListHead)
|
|
|
|
{
|
|
|
|
Item = CONTAINING_RECORD(ListEntry, FILE_SYSTEM_ITEM, ListEntry);
|
|
|
|
if (Item->FileSystemName && wcsicmp(FileSystemName, Item->FileSystemName) == 0)
|
|
|
|
return Item;
|
|
|
|
|
|
|
|
ListEntry = ListEntry->Flink;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
PFILE_SYSTEM_ITEM
|
|
|
|
GetFileSystem(
|
|
|
|
IN PFILE_SYSTEM_LIST FileSystemList,
|
[USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.
CORE-10898
svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
|
|
|
IN struct _PARTENTRY* PartEntry)
|
2016-02-28 16:01:54 +00:00
|
|
|
{
|
|
|
|
PFILE_SYSTEM_ITEM CurrentFileSystem;
|
|
|
|
LPWSTR FileSystemName = NULL;
|
|
|
|
|
|
|
|
CurrentFileSystem = PartEntry->FileSystem;
|
|
|
|
|
|
|
|
/* We have a file system, return it */
|
|
|
|
if (CurrentFileSystem != NULL && CurrentFileSystem->FileSystemName != NULL)
|
|
|
|
return CurrentFileSystem;
|
|
|
|
|
[USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.
CORE-10898
svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
|
|
|
DPRINT1("File system not found, try to guess one...\n");
|
|
|
|
|
2016-02-28 16:01:54 +00:00
|
|
|
CurrentFileSystem = NULL;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We don't have one...
|
|
|
|
*
|
|
|
|
* Try to infer a preferred file system for this partition, given its ID.
|
|
|
|
*
|
|
|
|
* WARNING: This is partly a hack, since partitions with the same ID can
|
|
|
|
* be formatted with different file systems: for example, usual Linux
|
|
|
|
* partitions that are formatted in EXT2/3/4, ReiserFS, etc... have the
|
|
|
|
* same partition ID 0x83.
|
|
|
|
*
|
|
|
|
* The proper fix is to make a function that detects the existing FS
|
|
|
|
* from a given partition (not based on the partition ID).
|
|
|
|
* On the contrary, for unformatted partitions with a given ID, the
|
|
|
|
* following code is OK.
|
|
|
|
*/
|
|
|
|
if ((PartEntry->PartitionType == PARTITION_FAT_12) ||
|
|
|
|
(PartEntry->PartitionType == PARTITION_FAT_16) ||
|
[USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.
CORE-10898
svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
|
|
|
(PartEntry->PartitionType == PARTITION_HUGE ) ||
|
2016-02-28 16:01:54 +00:00
|
|
|
(PartEntry->PartitionType == PARTITION_XINT13) ||
|
[USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.
CORE-10898
svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
|
|
|
(PartEntry->PartitionType == PARTITION_FAT32 ) ||
|
2016-02-28 16:01:54 +00:00
|
|
|
(PartEntry->PartitionType == PARTITION_FAT32_XINT13))
|
|
|
|
{
|
|
|
|
FileSystemName = L"FAT";
|
|
|
|
}
|
|
|
|
else if (PartEntry->PartitionType == PARTITION_EXT2)
|
|
|
|
{
|
|
|
|
// WARNING: See the warning above.
|
|
|
|
FileSystemName = L"EXT2";
|
|
|
|
}
|
|
|
|
else if (PartEntry->PartitionType == PARTITION_IFS)
|
|
|
|
{
|
|
|
|
// WARNING: See the warning above.
|
|
|
|
FileSystemName = L"NTFS"; /* FIXME: Not quite correct! */
|
|
|
|
}
|
|
|
|
|
[USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.
CORE-10898
svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
|
|
|
// HACK: WARNING: We cannot write on this FS yet!
|
2016-02-28 16:01:54 +00:00
|
|
|
if (PartEntry->PartitionType == PARTITION_EXT2 || PartEntry->PartitionType == PARTITION_IFS)
|
[USETUP]
- bootsup.c/.h, usetup.c: Save the old MBR sector in the system partition (this makes easier to restore the old one).
- fslist.c/.h, usetup.h: Fix header inclusion order.
- partlist.c/.h, usetup.c: On BIOS-PC architectures, the system partition can be formatted in any FS as long as it is the active partition (on the contrary, on architectures where such system partition is required, it is formatted in FAT). We currently do not have write support for all FSes out there (apart for FAT until now), so do a "clever" "trick" to work around this problem: on initialized disks, find the active partition and check its FS. If we support write access to this FS then we're OK, otherwise we change the (active) system partition for the one on which we are going to install ReactOS (which is, by construction, formatted with a FS on which we support write access).
The MBR (resp. the VBR) of the disk (resp. of the system partition) are always saved into files, making easy for people to boot on them (using FreeLdr) or restoring them.
CORE-10898
svn path=/trunk/; revision=70837
2016-03-01 15:00:56 +00:00
|
|
|
DPRINT1("Recognized file system %S that doesn't support write support yet!\n", FileSystemName);
|
2016-02-28 16:01:54 +00:00
|
|
|
|
|
|
|
DPRINT1("GetFileSystem -- PartitionType: 0x%02X ; FileSystemName (guessed): %S\n",
|
|
|
|
PartEntry->PartitionType, FileSystemName);
|
|
|
|
|
|
|
|
if (FileSystemName != NULL)
|
|
|
|
CurrentFileSystem = GetFileSystemByName(FileSystemList, FileSystemName);
|
|
|
|
|
|
|
|
return CurrentFileSystem;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-08-09 16:32:26 +00:00
|
|
|
PFILE_SYSTEM_LIST
|
2006-09-07 20:15:45 +00:00
|
|
|
CreateFileSystemList(
|
|
|
|
IN SHORT Left,
|
|
|
|
IN SHORT Top,
|
|
|
|
IN BOOLEAN ForceFormat,
|
2015-01-04 13:53:45 +00:00
|
|
|
IN LPCWSTR ForceFileSystem)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 20:15:45 +00:00
|
|
|
PFILE_SYSTEM_LIST List;
|
2006-09-07 22:42:28 +00:00
|
|
|
PFILE_SYSTEM_ITEM Item;
|
|
|
|
PLIST_ENTRY ListEntry;
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2006-09-07 20:15:45 +00:00
|
|
|
List = (PFILE_SYSTEM_LIST)RtlAllocateHeap(ProcessHeap, 0, sizeof(FILE_SYSTEM_LIST));
|
|
|
|
if (List == NULL)
|
|
|
|
return NULL;
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2006-09-07 20:15:45 +00:00
|
|
|
List->Left = Left;
|
|
|
|
List->Top = Top;
|
2006-09-07 22:42:28 +00:00
|
|
|
List->Selected = NULL;
|
|
|
|
InitializeListHead(&List->ListHead);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2015-01-04 13:53:45 +00:00
|
|
|
HOST_CreateFileSystemList(List);
|
2006-11-10 21:00:24 +00:00
|
|
|
|
2006-09-07 22:42:28 +00:00
|
|
|
if (!ForceFormat)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
/* Add 'Keep' provider */
|
2006-11-10 21:00:24 +00:00
|
|
|
FS_AddProvider(List, NULL, NULL, NULL);
|
2003-08-09 16:32:26 +00:00
|
|
|
}
|
2006-09-07 22:42:28 +00:00
|
|
|
|
|
|
|
/* Search for ForceFileSystem in list */
|
|
|
|
ListEntry = List->ListHead.Flink;
|
|
|
|
while (ListEntry != &List->ListHead)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
Item = CONTAINING_RECORD(ListEntry, FILE_SYSTEM_ITEM, ListEntry);
|
2015-06-12 21:51:57 +00:00
|
|
|
if (Item->FileSystemName && wcscmp(ForceFileSystem, Item->FileSystemName) == 0)
|
2006-09-07 22:42:28 +00:00
|
|
|
{
|
|
|
|
List->Selected = Item;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
ListEntry = ListEntry->Flink;
|
2003-08-09 16:32:26 +00:00
|
|
|
}
|
2006-09-07 22:42:28 +00:00
|
|
|
if (!List->Selected)
|
|
|
|
List->Selected = CONTAINING_RECORD(List->ListHead.Flink, FILE_SYSTEM_ITEM, ListEntry);
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2006-09-07 20:15:45 +00:00
|
|
|
return List;
|
2003-08-09 16:32:26 +00:00
|
|
|
}
|
|
|
|
|
2014-05-12 14:17:37 +00:00
|
|
|
|
2003-08-09 16:32:26 +00:00
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
DestroyFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
PLIST_ENTRY ListEntry = List->ListHead.Flink;
|
|
|
|
PFILE_SYSTEM_ITEM Item;
|
|
|
|
PLIST_ENTRY Next;
|
|
|
|
|
|
|
|
while (ListEntry != &List->ListHead)
|
|
|
|
{
|
|
|
|
Item = CONTAINING_RECORD(ListEntry, FILE_SYSTEM_ITEM, ListEntry);
|
|
|
|
Next = ListEntry->Flink;
|
|
|
|
|
|
|
|
RtlFreeHeap(ProcessHeap, 0, Item);
|
|
|
|
|
|
|
|
ListEntry = Next;
|
|
|
|
}
|
2006-09-07 20:15:45 +00:00
|
|
|
RtlFreeHeap(ProcessHeap, 0, List);
|
2003-08-09 16:32:26 +00:00
|
|
|
}
|
|
|
|
|
2014-05-12 14:17:37 +00:00
|
|
|
|
2003-08-09 16:32:26 +00:00
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
DrawFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
PLIST_ENTRY ListEntry;
|
|
|
|
PFILE_SYSTEM_ITEM Item;
|
2006-09-07 20:15:45 +00:00
|
|
|
COORD coPos;
|
2007-07-28 18:24:09 +00:00
|
|
|
DWORD Written;
|
2006-09-07 22:42:28 +00:00
|
|
|
ULONG Index = 0;
|
2016-02-02 02:23:56 +00:00
|
|
|
CHAR Buffer[128];
|
2003-08-09 16:32:26 +00:00
|
|
|
|
2006-09-07 22:42:28 +00:00
|
|
|
ListEntry = List->ListHead.Flink;
|
|
|
|
while (ListEntry != &List->ListHead)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
Item = CONTAINING_RECORD(ListEntry, FILE_SYSTEM_ITEM, ListEntry);
|
|
|
|
|
2006-09-07 20:15:45 +00:00
|
|
|
coPos.X = List->Left;
|
2006-11-10 21:00:24 +00:00
|
|
|
coPos.Y = List->Top + (SHORT)Index;
|
2006-09-07 20:15:45 +00:00
|
|
|
FillConsoleOutputAttribute(StdOutput,
|
|
|
|
FOREGROUND_WHITE | BACKGROUND_BLUE,
|
2006-09-07 22:42:28 +00:00
|
|
|
sizeof(Buffer),
|
2006-09-07 20:15:45 +00:00
|
|
|
coPos,
|
|
|
|
&Written);
|
|
|
|
FillConsoleOutputCharacterA(StdOutput,
|
|
|
|
' ',
|
2006-09-07 22:42:28 +00:00
|
|
|
sizeof(Buffer),
|
2006-09-07 20:15:45 +00:00
|
|
|
coPos,
|
|
|
|
&Written);
|
|
|
|
|
2015-06-12 21:51:57 +00:00
|
|
|
if (Item->FileSystemName)
|
2006-09-07 20:15:45 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
if (Item->QuickFormat)
|
2015-06-12 21:51:57 +00:00
|
|
|
snprintf(Buffer, sizeof(Buffer), MUIGetString(STRING_FORMATDISK1), Item->FileSystemName);
|
2006-09-07 22:42:28 +00:00
|
|
|
else
|
2015-06-12 21:51:57 +00:00
|
|
|
snprintf(Buffer, sizeof(Buffer), MUIGetString(STRING_FORMATDISK2), Item->FileSystemName);
|
2006-09-07 20:15:45 +00:00
|
|
|
}
|
|
|
|
else
|
2014-10-04 21:24:16 +00:00
|
|
|
snprintf(Buffer, sizeof(Buffer), MUIGetString(STRING_KEEPFORMAT));
|
2006-09-07 22:42:28 +00:00
|
|
|
|
|
|
|
if (ListEntry == &List->Selected->ListEntry)
|
|
|
|
CONSOLE_SetInvertedTextXY(List->Left,
|
2011-06-26 10:08:31 +00:00
|
|
|
List->Top + (SHORT)Index,
|
2006-09-07 22:42:28 +00:00
|
|
|
Buffer);
|
|
|
|
else
|
2006-09-07 20:15:45 +00:00
|
|
|
CONSOLE_SetTextXY(List->Left,
|
2011-06-26 10:08:31 +00:00
|
|
|
List->Top + (SHORT)Index,
|
2006-09-07 22:42:28 +00:00
|
|
|
Buffer);
|
|
|
|
Index++;
|
|
|
|
ListEntry = ListEntry->Flink;
|
2003-08-09 16:32:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-12 14:17:37 +00:00
|
|
|
|
2003-08-09 16:32:26 +00:00
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
ScrollDownFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
if (List->Selected->ListEntry.Flink != &List->ListHead)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
List->Selected = CONTAINING_RECORD(List->Selected->ListEntry.Flink, FILE_SYSTEM_ITEM, ListEntry);
|
2006-09-07 20:15:45 +00:00
|
|
|
DrawFileSystemList(List);
|
2003-08-09 16:32:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-12 14:17:37 +00:00
|
|
|
|
2003-08-09 16:32:26 +00:00
|
|
|
VOID
|
2006-09-07 20:15:45 +00:00
|
|
|
ScrollUpFileSystemList(
|
|
|
|
IN PFILE_SYSTEM_LIST List)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
if (List->Selected->ListEntry.Blink != &List->ListHead)
|
2003-08-09 16:32:26 +00:00
|
|
|
{
|
2006-09-07 22:42:28 +00:00
|
|
|
List->Selected = CONTAINING_RECORD(List->Selected->ListEntry.Blink, FILE_SYSTEM_ITEM, ListEntry);
|
2006-09-07 20:15:45 +00:00
|
|
|
DrawFileSystemList(List);
|
2003-08-09 16:32:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|