Ignore:
Timestamp:
Apr 7, 2004, 11:13:53 AM (21 years ago)
Author:
sandervl
Message:

Profile: flush ini file after write actions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/profile.cpp

    r10527 r10574  
    1 /* $Id: profile.cpp,v 1.36 2004-03-16 13:33:00 sandervl Exp $ */
     1/* $Id: profile.cpp,v 1.37 2004-04-07 09:13:53 sandervl Exp $ */
    22
    33/*
     
    13411341    {
    13421342        if (!section && !entry && !string)
     1343        {
     1344            PROFILE_FlushFile();
    13431345            PROFILE_ReleaseFile();  /* always return FALSE in this case */
     1346        }
    13441347        else
     1348        {
    13451349            ret = PROFILE_SetString( section, entry, string );
     1350            PROFILE_FlushFile();
     1351        }
    13461352    }
    13471353
     
    13891395            PROFILE_ReleaseFile();  /* always return FALSE in this case */
    13901396        else if (!string) /* delete the named section*/
     1397        {
    13911398            ret = PROFILE_SetString(section,NULL,NULL);
     1399            PROFILE_FlushFile();
     1400        }
    13921401        else {
    13931402            PROFILE_DeleteAllKeys(section);
     
    14031412                string += strlen(string)+1;
    14041413            }
    1405            
     1414            PROFILE_FlushFile();
    14061415        }
    14071416    }
     
    15601569
    15611570    if (PROFILE_Open( filename ))
     1571    {
    15621572        ret = PROFILE_SetString( section, key, (LPCSTR)buf );
    1563 
     1573        PROFILE_FlushFile();
     1574    }
    15641575    LeaveCriticalSection( &PROFILE_CritSect );
    15651576
Note: See TracChangeset for help on using the changeset viewer.