mirror of
https://github.com/stascorp/rdpwrap.git
synced 2024-11-23 22:17:18 +00:00
Fix some typos
This commit is contained in:
parent
81baa4522f
commit
d2449ccdd6
@ -193,14 +193,14 @@ bool INI_FILE::Parse()
|
|||||||
DWORD CurrentSectionNum = -1;
|
DWORD CurrentSectionNum = -1;
|
||||||
DWORD CurrentVariableNum = -1;
|
DWORD CurrentVariableNum = -1;
|
||||||
|
|
||||||
// Calculate sections count
|
// Calculate section count
|
||||||
for(DWORD CurrentStringNum = 0; CurrentStringNum < FileStringsCount; CurrentStringNum++)
|
for(DWORD CurrentStringNum = 0; CurrentStringNum < FileStringsCount; CurrentStringNum++)
|
||||||
{
|
{
|
||||||
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;
|
||||||
@ -214,10 +214,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;
|
||||||
@ -250,7 +250,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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user