Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
张顾在
wine
Commits
4589a074
Commit
4589a074
authored
23 years ago
by
Marcus Meissner
Committed by
Alexandre Julliard
23 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Handle section==NULL (error) in WritePrivateProfileStringA.
parent
77e7fd7a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
files/profile.c
+7
-2
7 additions, 2 deletions
files/profile.c
with
7 additions
and
2 deletions
files/profile.c
+
7
−
2
View file @
4589a074
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment