Changeset 547 for trunk/src/kernel32/profile.cpp
- Timestamp:
- Aug 18, 1999, 6:44:45 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/profile.cpp
r543 r547 1 /* $Id: profile.cpp,v 1.1 3 1999-08-18 10:56:53 sandervlExp $ */1 /* $Id: profile.cpp,v 1.14 1999-08-18 16:44:45 phaller Exp $ */ 2 2 3 3 /* … … 158 158 for ( ; section; section = section->next) 159 159 { 160 if (section->name) fprintf( file, "\ n[%s]\n", section->name );160 if (section->name) fprintf( file, "\r\n[%s]\r\n", section->name ); 161 161 for (key = section->key; key; key = key->next) 162 162 { 163 163 fprintf( file, "%s", key->name ); 164 164 if (key->value) fprintf( file, "=%s", key->value ); 165 fprintf( file, "\ n" );165 fprintf( file, "\r\n" ); 166 166 } 167 167 } … … 506 506 /* check for path */ 507 507 508 if ( (!strchr( filename,'/') &&509 !strchr( filename,'\\') )||508 if (!strchr( filename,'/') || 509 !strchr( filename,'\\') || 510 510 !strchr( filename,':')) 511 511 { … … 905 905 PROFILE_WineProfile = PROFILE_Load( f ); 906 906 fclose( f ); 907 907 strncpy(PROFILE_WineIniUsed,buffer,MAX_PATHNAME_LEN-1); 908 908 return 1; 909 909 } … … 1177 1177 BOOL ret = FALSE; 1178 1178 1179 dprintf(("WritePrivateProfileStringA: %s %s %s", section, entry, string));1180 1179 EnterCriticalSection( &PROFILE_CritSect ); 1181 1180 … … 1399 1398 INT x; 1400 1399 1401 dprintf(("WriteOutProfiles"));1402 1400 EnterCriticalSection(&PROFILE_CritSect); 1403 PROFILE_FlushFile(); //flash current 1404 lastCurProfile = CurProfile; 1405 for(x = 1;x < N_CACHED_PROFILES;x++) 1406 { 1407 if (MRUProfile[x]) 1401 if (MRUProfile && CurProfile->filename) 1402 { 1403 PROFILE_FlushFile(); //flash current 1404 lastCurProfile = CurProfile; 1405 for(x = 1;x < N_CACHED_PROFILES;x++) 1406 { 1408 1407 if (MRUProfile[x]->filename) 1409 1408 { … … 1411 1410 PROFILE_FlushFile(); 1412 1411 } 1413 } 1414 CurProfile = lastCurProfile; 1412 } 1413 CurProfile = lastCurProfile; 1414 } 1415 1415 LeaveCriticalSection(&PROFILE_CritSect); 1416 1416 } 1417 1417 1418
Note:
See TracChangeset
for help on using the changeset viewer.