Removed strange checkj for !filename, so we don't get section NULL
accesses later.
This commit is contained in:
parent
5b21807946
commit
25e7403a27
|
@ -1485,7 +1485,7 @@ BOOL WINAPI WritePrivateProfileSectionA( LPCSTR section,
|
|||
EnterCriticalSection( &PROFILE_CritSect );
|
||||
|
||||
if (PROFILE_Open( filename )) {
|
||||
if (!section && !string && !filename)
|
||||
if (!section && !string)
|
||||
PROFILE_ReleaseFile(); /* always return FALSE in this case */
|
||||
else if (!string) /* delete the named section*/
|
||||
ret = PROFILE_SetString(section,NULL,NULL);
|
||||
|
|
Loading…
Reference in New Issue