Skip to content
Snippets Groups Projects
Commit eb9033ce authored by Tom Lane's avatar Tom Lane
Browse files

Do not accept values from sections following the specified section.

parent af129857
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,6 @@ GetPrivateProfileString(char *theSection, /* section name */ ...@@ -55,7 +55,6 @@ GetPrivateProfileString(char *theSection, /* section name */
char *aString; char *aString;
size_t aLineLength; size_t aLineLength;
size_t aReturnLength = 0; size_t aReturnLength = 0;
BOOL aSectionFound = FALSE; BOOL aSectionFound = FALSE;
BOOL aKeyFound = FALSE; BOOL aKeyFound = FALSE;
int j = 0; int j = 0;
...@@ -151,9 +150,9 @@ GetPrivateProfileString(char *theSection, /* section name */ ...@@ -151,9 +150,9 @@ GetPrivateProfileString(char *theSection, /* section name */
/* accept as matched if NULL key or exact match */ /* accept as matched if NULL key or exact match */
if(!theSection || !strcmp(aStart, theSection)) if(!theSection || !strcmp(aStart, theSection))
{
aSectionFound = TRUE; aSectionFound = TRUE;
} else
aSectionFound = FALSE;
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment