Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
87bff28c
Commit
87bff28c
authored
Nov 21, 1999
by
Andreas Mohr
Committed by
Alexandre Julliard
Nov 21, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flush current profile before using a newly opened one.
parent
3ee1c03e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
profile.c
files/profile.c
+4
-4
No files found.
files/profile.c
View file @
87bff28c
...
@@ -494,8 +494,10 @@ static BOOL PROFILE_Open( LPCSTR filename )
...
@@ -494,8 +494,10 @@ static BOOL PROFILE_Open( LPCSTR filename )
}
}
}
}
/* Rotate the oldest to the top to be replaced */
/* Flush the old current profile */
PROFILE_FlushFile
();
/* Make the oldest profile the current one only in order to get rid of it */
if
(
i
==
N_CACHED_PROFILES
)
if
(
i
==
N_CACHED_PROFILES
)
{
{
tempProfile
=
MRUProfile
[
N_CACHED_PROFILES
-
1
];
tempProfile
=
MRUProfile
[
N_CACHED_PROFILES
-
1
];
...
@@ -503,11 +505,9 @@ static BOOL PROFILE_Open( LPCSTR filename )
...
@@ -503,11 +505,9 @@ static BOOL PROFILE_Open( LPCSTR filename )
MRUProfile
[
i
]
=
MRUProfile
[
i
-
1
];
MRUProfile
[
i
]
=
MRUProfile
[
i
-
1
];
CurProfile
=
tempProfile
;
CurProfile
=
tempProfile
;
}
}
/* Flush the profile */
if
(
CurProfile
->
filename
)
PROFILE_ReleaseFile
();
if
(
CurProfile
->
filename
)
PROFILE_ReleaseFile
();
/* OK, now that CurProfile is definitely free we assign it our new file */
newdos_name
=
HEAP_strdupA
(
SystemHeap
,
0
,
full_name
.
short_name
);
newdos_name
=
HEAP_strdupA
(
SystemHeap
,
0
,
full_name
.
short_name
);
CurProfile
->
dos_name
=
newdos_name
;
CurProfile
->
dos_name
=
newdos_name
;
CurProfile
->
filename
=
HEAP_strdupA
(
SystemHeap
,
0
,
filename
);
CurProfile
->
filename
=
HEAP_strdupA
(
SystemHeap
,
0
,
filename
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment