Skip to content
Snippets Groups Projects
Commit 4589a074 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

Handle section==NULL (error) in WritePrivateProfileStringA.

parent 77e7fd7a
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment