Commit 4589a074 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Handle section==NULL (error) in WritePrivateProfileStringA.

parent 77e7fd7a
......@@ -1480,8 +1480,13 @@ BOOL WINAPI WritePrivateProfileStringA( LPCSTR section, LPCSTR entry,
{
if (!section && !entry && !string) /* documented "file flush" case */
PROFILE_ReleaseFile(); /* always return FALSE in this case */
else
ret = PROFILE_SetString( section, entry, string );
else {
if (!section) {
FIXME("(NULL?,%s,%s,%s)? \n",entry,string,filename);
} else {
ret = PROFILE_SetString( section, entry, string );
}
}
}
LeaveCriticalSection( &PROFILE_CritSect );
......
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