Commit 25e7403a authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

accesses later.
parent 5b218079
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment