mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +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);
|
||||
}
|
||||
|
||||
LPSTR
|
||||
PCSTR
|
||||
MUIGetString(
|
||||
ULONG Number)
|
||||
{
|
||||
|
|
|
@ -4,15 +4,15 @@ typedef struct
|
|||
{
|
||||
SHORT X;
|
||||
SHORT Y;
|
||||
LPCSTR Buffer;
|
||||
PCSTR Buffer;
|
||||
DWORD Flags;
|
||||
INT TextID;
|
||||
} MUI_ENTRY, *PMUI_ENTRY;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
LPCSTR ErrorText;
|
||||
LPCSTR ErrorStatus;
|
||||
PCSTR ErrorText;
|
||||
PCSTR ErrorStatus;
|
||||
} MUI_ERROR;
|
||||
|
||||
typedef struct
|
||||
|
@ -24,7 +24,7 @@ typedef struct
|
|||
typedef struct
|
||||
{
|
||||
LONG Number;
|
||||
LPSTR String;
|
||||
PCSTR String;
|
||||
} MUI_STRING;
|
||||
|
||||
typedef struct
|
||||
|
@ -68,7 +68,7 @@ MUIDisplayError(
|
|||
VOID
|
||||
SetConsoleCodePage(VOID);
|
||||
|
||||
LPSTR
|
||||
PCSTR
|
||||
MUIGetString(
|
||||
ULONG Number);
|
||||
|
||||
|
|
|
@ -172,10 +172,10 @@ PrintPartitionData(
|
|||
USHORT Width;
|
||||
USHORT Height;
|
||||
LARGE_INTEGER PartSize;
|
||||
PCHAR Unit;
|
||||
PCSTR Unit;
|
||||
UCHAR Attribute;
|
||||
CHAR PartTypeString[32];
|
||||
PCHAR PartType = PartTypeString;
|
||||
PCSTR PartType = PartTypeString;
|
||||
|
||||
Width = ListUi->Right - ListUi->Left - 1;
|
||||
Height = ListUi->Bottom - ListUi->Top - 2;
|
||||
|
@ -308,7 +308,7 @@ PrintDiskData(
|
|||
USHORT Width;
|
||||
USHORT Height;
|
||||
ULARGE_INTEGER DiskSize;
|
||||
PCHAR Unit;
|
||||
PCSTR Unit;
|
||||
|
||||
Width = ListUi->Right - ListUi->Left - 1;
|
||||
Height = ListUi->Bottom - ListUi->Top - 2;
|
||||
|
|
|
@ -144,9 +144,9 @@ DoWatchDestFileName(LPCWSTR FileName)
|
|||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
static VOID
|
||||
PrintString(char* fmt,...)
|
||||
PrintString(IN PCSTR fmt,...)
|
||||
{
|
||||
char buffer[512];
|
||||
CHAR buffer[512];
|
||||
va_list ap;
|
||||
UNICODE_STRING UnicodeString;
|
||||
ANSI_STRING AnsiString;
|
||||
|
@ -2065,7 +2065,7 @@ CreatePrimaryPartitionPage(PINPUT_RECORD Ir)
|
|||
ULONGLONG PartSize;
|
||||
ULONGLONG DiskSize;
|
||||
ULONGLONG SectorCount;
|
||||
PCHAR Unit;
|
||||
PCSTR Unit;
|
||||
|
||||
if (PartitionList == NULL || CurrentPartition == NULL)
|
||||
{
|
||||
|
@ -2227,7 +2227,7 @@ CreateExtendedPartitionPage(PINPUT_RECORD Ir)
|
|||
ULONGLONG PartSize;
|
||||
ULONGLONG DiskSize;
|
||||
ULONGLONG SectorCount;
|
||||
PCHAR Unit;
|
||||
PCSTR Unit;
|
||||
|
||||
if (PartitionList == NULL || CurrentPartition == NULL)
|
||||
{
|
||||
|
@ -2388,7 +2388,7 @@ CreateLogicalPartitionPage(PINPUT_RECORD Ir)
|
|||
ULONGLONG PartSize;
|
||||
ULONGLONG DiskSize;
|
||||
ULONGLONG SectorCount;
|
||||
PCHAR Unit;
|
||||
PCSTR Unit;
|
||||
|
||||
if (PartitionList == NULL || CurrentPartition == NULL)
|
||||
{
|
||||
|
@ -2586,7 +2586,7 @@ DeletePartitionPage(PINPUT_RECORD Ir)
|
|||
PDISKENTRY DiskEntry;
|
||||
ULONGLONG DiskSize;
|
||||
ULONGLONG PartSize;
|
||||
PCHAR Unit;
|
||||
PCSTR Unit;
|
||||
CHAR PartTypeString[32];
|
||||
|
||||
if (PartitionList == NULL || CurrentPartition == NULL)
|
||||
|
@ -2757,8 +2757,8 @@ SelectFileSystemPage(PINPUT_RECORD Ir)
|
|||
PDISKENTRY DiskEntry;
|
||||
ULONGLONG DiskSize;
|
||||
ULONGLONG PartSize;
|
||||
PCHAR DiskUnit;
|
||||
PCHAR PartUnit;
|
||||
PCSTR DiskUnit;
|
||||
PCSTR PartUnit;
|
||||
CHAR PartTypeString[32];
|
||||
FORMATMACHINESTATE PreviousFormatState;
|
||||
PCWSTR DefaultFs;
|
||||
|
|
Loading…
Reference in a new issue