mirror of
https://github.com/stascorp/rdpwrap.git
synced 2024-11-23 22:17:18 +00:00
Fix typos
This commit is contained in:
parent
e2e4a33954
commit
8b85f43605
@ -190,9 +190,9 @@ bool INI_FILE::Parse()
|
|||||||
{
|
{
|
||||||
CurrentStringSize = GetFileStringFromNum(CurrentStringNum, CurrentString, 512);
|
CurrentStringSize = GetFileStringFromNum(CurrentStringNum, CurrentString, 512);
|
||||||
|
|
||||||
if(CurrentString[0] == ';') continue; // It's comment
|
if(CurrentString[0] == ';') continue; // It's a comment
|
||||||
|
|
||||||
if(CurrentString[0] == '[' && CurrentString[CurrentStringSize-1] == ']') // It's section diclarate
|
if(CurrentString[0] == '[' && CurrentString[CurrentStringSize-1] == ']') // It's section declaration
|
||||||
{
|
{
|
||||||
SectionsCount++;
|
SectionsCount++;
|
||||||
continue;
|
continue;
|
||||||
@ -206,10 +206,10 @@ bool INI_FILE::Parse()
|
|||||||
{
|
{
|
||||||
CurrentStringSize = GetFileStringFromNum(CurrentStringNum, CurrentString, 512);
|
CurrentStringSize = GetFileStringFromNum(CurrentStringNum, CurrentString, 512);
|
||||||
|
|
||||||
if(CurrentString[0] == ';') continue; // It's comment
|
if(CurrentString[0] == ';') continue; // It's a comment
|
||||||
|
|
||||||
|
|
||||||
if(CurrentString[0] == '[' && CurrentString[CurrentStringSize-1] == ']') // It's section diclarate
|
if(CurrentString[0] == '[' && CurrentString[CurrentStringSize-1] == ']') // It's section declaration
|
||||||
{
|
{
|
||||||
CurrentSectionNum++;
|
CurrentSectionNum++;
|
||||||
continue;
|
continue;
|
||||||
@ -242,7 +242,7 @@ bool INI_FILE::Parse()
|
|||||||
{
|
{
|
||||||
CurrentStringSize = GetFileStringFromNum(CurrentStringNum, CurrentString, 512);
|
CurrentStringSize = GetFileStringFromNum(CurrentStringNum, CurrentString, 512);
|
||||||
|
|
||||||
if(CurrentString[0] == ';') // It's comment
|
if(CurrentString[0] == ';') // It's a comment
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
DWORD FileSize; // Ini file size
|
DWORD FileSize; // Ini file size
|
||||||
char *FileRaw; // Ini file raw dump
|
char *FileRaw; // Ini file raw dump
|
||||||
DWORD FileStringsCount; // String-map lenght
|
DWORD FileStringsCount; // String-map length
|
||||||
DWORD *FileStringsMap; // String-map
|
DWORD *FileStringsMap; // String-map
|
||||||
INI_DATA IniData; // Parsed data
|
INI_DATA IniData; // Parsed data
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ private:
|
|||||||
// Class service functions
|
// Class service functions
|
||||||
bool CreateStringsMap(); // Create file string-map
|
bool CreateStringsMap(); // Create file string-map
|
||||||
bool Parse(); // Parse file to class structures
|
bool Parse(); // Parse file to class structures
|
||||||
DWORD GetFileStringFromNum(DWORD StringNumber, char *RetString, DWORD Size); // Get stroing from string-map
|
DWORD GetFileStringFromNum(DWORD StringNumber, char *RetString, DWORD Size); // Get string from string-map
|
||||||
bool IsVariable(char *Str, DWORD StrSize);
|
bool IsVariable(char *Str, DWORD StrSize);
|
||||||
bool FillVariable(INI_SECTION_VARIABLE *Variable, char *Str, DWORD StrSize); // Fill INI_SECTION_VARIABLE struct (for Parse)
|
bool FillVariable(INI_SECTION_VARIABLE *Variable, char *Str, DWORD StrSize); // Fill INI_SECTION_VARIABLE struct (for Parse)
|
||||||
bool GetVariableInSectionPrivate(char *SectionName, char *VariableName, INI_SECTION_VARIABLE *RetVariable);
|
bool GetVariableInSectionPrivate(char *SectionName, char *VariableName, INI_SECTION_VARIABLE *RetVariable);
|
||||||
|
Loading…
Reference in New Issue
Block a user