mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 17:30:32 +00:00
[USETUP] Use pointers to const strings where meaningful.
This commit is contained in:
parent
4dc3125450
commit
13dd01b44c
4 changed files with 17 additions and 17 deletions
|
@ -226,7 +226,7 @@ MUIDisplayError(
|
||||||
va_end(arg_ptr);
|
va_end(arg_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
LPSTR
|
PCSTR
|
||||||
MUIGetString(
|
MUIGetString(
|
||||||
ULONG Number)
|
ULONG Number)
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,15 +4,15 @@ typedef struct
|
||||||
{
|
{
|
||||||
SHORT X;
|
SHORT X;
|
||||||
SHORT Y;
|
SHORT Y;
|
||||||
LPCSTR Buffer;
|
PCSTR Buffer;
|
||||||
DWORD Flags;
|
DWORD Flags;
|
||||||
INT TextID;
|
INT TextID;
|
||||||
} MUI_ENTRY, *PMUI_ENTRY;
|
} MUI_ENTRY, *PMUI_ENTRY;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
LPCSTR ErrorText;
|
PCSTR ErrorText;
|
||||||
LPCSTR ErrorStatus;
|
PCSTR ErrorStatus;
|
||||||
} MUI_ERROR;
|
} MUI_ERROR;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -24,7 +24,7 @@ typedef struct
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
LONG Number;
|
LONG Number;
|
||||||
LPSTR String;
|
PCSTR String;
|
||||||
} MUI_STRING;
|
} MUI_STRING;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
|
@ -68,7 +68,7 @@ MUIDisplayError(
|
||||||
VOID
|
VOID
|
||||||
SetConsoleCodePage(VOID);
|
SetConsoleCodePage(VOID);
|
||||||
|
|
||||||
LPSTR
|
PCSTR
|
||||||
MUIGetString(
|
MUIGetString(
|
||||||
ULONG Number);
|
ULONG Number);
|
||||||
|
|
||||||
|
|
|
@ -172,10 +172,10 @@ PrintPartitionData(
|
||||||
USHORT Width;
|
USHORT Width;
|
||||||
USHORT Height;
|
USHORT Height;
|
||||||
LARGE_INTEGER PartSize;
|
LARGE_INTEGER PartSize;
|
||||||
PCHAR Unit;
|
PCSTR Unit;
|
||||||
UCHAR Attribute;
|
UCHAR Attribute;
|
||||||
CHAR PartTypeString[32];
|
CHAR PartTypeString[32];
|
||||||
PCHAR PartType = PartTypeString;
|
PCSTR PartType = PartTypeString;
|
||||||
|
|
||||||
Width = ListUi->Right - ListUi->Left - 1;
|
Width = ListUi->Right - ListUi->Left - 1;
|
||||||
Height = ListUi->Bottom - ListUi->Top - 2;
|
Height = ListUi->Bottom - ListUi->Top - 2;
|
||||||
|
@ -308,7 +308,7 @@ PrintDiskData(
|
||||||
USHORT Width;
|
USHORT Width;
|
||||||
USHORT Height;
|
USHORT Height;
|
||||||
ULARGE_INTEGER DiskSize;
|
ULARGE_INTEGER DiskSize;
|
||||||
PCHAR Unit;
|
PCSTR Unit;
|
||||||
|
|
||||||
Width = ListUi->Right - ListUi->Left - 1;
|
Width = ListUi->Right - ListUi->Left - 1;
|
||||||
Height = ListUi->Bottom - ListUi->Top - 2;
|
Height = ListUi->Bottom - ListUi->Top - 2;
|
||||||
|
|
|
@ -144,9 +144,9 @@ DoWatchDestFileName(LPCWSTR FileName)
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
PrintString(char* fmt,...)
|
PrintString(IN PCSTR fmt,...)
|
||||||
{
|
{
|
||||||
char buffer[512];
|
CHAR buffer[512];
|
||||||
va_list ap;
|
va_list ap;
|
||||||
UNICODE_STRING UnicodeString;
|
UNICODE_STRING UnicodeString;
|
||||||
ANSI_STRING AnsiString;
|
ANSI_STRING AnsiString;
|
||||||
|
@ -2065,7 +2065,7 @@ CreatePrimaryPartitionPage(PINPUT_RECORD Ir)
|
||||||
ULONGLONG PartSize;
|
ULONGLONG PartSize;
|
||||||
ULONGLONG DiskSize;
|
ULONGLONG DiskSize;
|
||||||
ULONGLONG SectorCount;
|
ULONGLONG SectorCount;
|
||||||
PCHAR Unit;
|
PCSTR Unit;
|
||||||
|
|
||||||
if (PartitionList == NULL || CurrentPartition == NULL)
|
if (PartitionList == NULL || CurrentPartition == NULL)
|
||||||
{
|
{
|
||||||
|
@ -2227,7 +2227,7 @@ CreateExtendedPartitionPage(PINPUT_RECORD Ir)
|
||||||
ULONGLONG PartSize;
|
ULONGLONG PartSize;
|
||||||
ULONGLONG DiskSize;
|
ULONGLONG DiskSize;
|
||||||
ULONGLONG SectorCount;
|
ULONGLONG SectorCount;
|
||||||
PCHAR Unit;
|
PCSTR Unit;
|
||||||
|
|
||||||
if (PartitionList == NULL || CurrentPartition == NULL)
|
if (PartitionList == NULL || CurrentPartition == NULL)
|
||||||
{
|
{
|
||||||
|
@ -2388,7 +2388,7 @@ CreateLogicalPartitionPage(PINPUT_RECORD Ir)
|
||||||
ULONGLONG PartSize;
|
ULONGLONG PartSize;
|
||||||
ULONGLONG DiskSize;
|
ULONGLONG DiskSize;
|
||||||
ULONGLONG SectorCount;
|
ULONGLONG SectorCount;
|
||||||
PCHAR Unit;
|
PCSTR Unit;
|
||||||
|
|
||||||
if (PartitionList == NULL || CurrentPartition == NULL)
|
if (PartitionList == NULL || CurrentPartition == NULL)
|
||||||
{
|
{
|
||||||
|
@ -2586,7 +2586,7 @@ DeletePartitionPage(PINPUT_RECORD Ir)
|
||||||
PDISKENTRY DiskEntry;
|
PDISKENTRY DiskEntry;
|
||||||
ULONGLONG DiskSize;
|
ULONGLONG DiskSize;
|
||||||
ULONGLONG PartSize;
|
ULONGLONG PartSize;
|
||||||
PCHAR Unit;
|
PCSTR Unit;
|
||||||
CHAR PartTypeString[32];
|
CHAR PartTypeString[32];
|
||||||
|
|
||||||
if (PartitionList == NULL || CurrentPartition == NULL)
|
if (PartitionList == NULL || CurrentPartition == NULL)
|
||||||
|
@ -2757,8 +2757,8 @@ SelectFileSystemPage(PINPUT_RECORD Ir)
|
||||||
PDISKENTRY DiskEntry;
|
PDISKENTRY DiskEntry;
|
||||||
ULONGLONG DiskSize;
|
ULONGLONG DiskSize;
|
||||||
ULONGLONG PartSize;
|
ULONGLONG PartSize;
|
||||||
PCHAR DiskUnit;
|
PCSTR DiskUnit;
|
||||||
PCHAR PartUnit;
|
PCSTR PartUnit;
|
||||||
CHAR PartTypeString[32];
|
CHAR PartTypeString[32];
|
||||||
FORMATMACHINESTATE PreviousFormatState;
|
FORMATMACHINESTATE PreviousFormatState;
|
||||||
PCWSTR DefaultFs;
|
PCWSTR DefaultFs;
|
||||||
|
|
Loading…
Reference in a new issue