Removed strange checkj for !filename, so we don't get section NULL

accesses later.
This commit is contained in:
Marcus Meissner 2000-11-26 22:36:19 +00:00 committed by Alexandre Julliard
parent 5b21807946
commit 25e7403a27
1 changed files with 1 additions and 1 deletions

View File

@ -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);