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
14f9b844
Commit
14f9b844
authored
Feb 10, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed profile cache flushing when no filename is specified (reported
by Mike Hearn).
parent
9ee0586c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
profile.c
dlls/kernel/profile.c
+14
-9
No files found.
dlls/kernel/profile.c
View file @
14f9b844
...
...
@@ -1421,14 +1421,15 @@ BOOL WINAPI WritePrivateProfileStringW( LPCWSTR section, LPCWSTR entry,
RtlEnterCriticalSection
(
&
PROFILE_CritSect
);
if
(
PROFILE_Open
(
filename
))
{
if
(
!
section
&&
!
entry
&&
!
string
)
/* documented "file flush" case */
{
PROFILE_FlushFile
();
PROFILE_ReleaseFile
();
/* always return FALSE in this case */
if
(
!
filename
||
PROFILE_Open
(
filename
))
{
if
(
CurProfile
)
PROFILE_ReleaseFile
();
/* always return FALSE in this case */
}
}
else
{
else
if
(
PROFILE_Open
(
filename
))
{
if
(
!
section
)
{
FIXME
(
"(NULL?,%s,%s,%s)?
\n
"
,
debugstr_w
(
entry
),
debugstr_w
(
string
),
debugstr_w
(
filename
));
...
...
@@ -1437,7 +1438,6 @@ BOOL WINAPI WritePrivateProfileStringW( LPCWSTR section, LPCWSTR entry,
PROFILE_FlushFile
();
}
}
}
RtlLeaveCriticalSection
(
&
PROFILE_CritSect
);
return
ret
;
...
...
@@ -1481,10 +1481,15 @@ BOOL WINAPI WritePrivateProfileSectionW( LPCWSTR section,
RtlEnterCriticalSection
(
&
PROFILE_CritSect
);
if
(
PROFILE_Open
(
filename
))
{
if
(
!
section
&&
!
string
)
PROFILE_ReleaseFile
();
/* always return FALSE in this case */
else
if
(
!
string
)
{
/* delete the named section*/
{
if
(
!
filename
||
PROFILE_Open
(
filename
))
{
if
(
CurProfile
)
PROFILE_ReleaseFile
();
/* always return FALSE in this case */
}
}
else
if
(
PROFILE_Open
(
filename
))
{
if
(
!
string
)
{
/* delete the named section*/
ret
=
PROFILE_SetString
(
section
,
NULL
,
NULL
,
FALSE
);
PROFILE_FlushFile
();
}
else
{
...
...
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