Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f1b4c331
Commit
f1b4c331
authored
Aug 17, 2012
by
Marcus Meissner
Committed by
Alexandre Julliard
Aug 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Fixed use-after-free (Coverity).
parent
c8d61899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivedetect.c
programs/winecfg/drivedetect.c
+1
-1
No files found.
programs/winecfg/drivedetect.c
View file @
f1b4c331
...
@@ -287,7 +287,6 @@ static void ensure_drive_c_is_mapped(void)
...
@@ -287,7 +287,6 @@ static void ensure_drive_c_is_mapped(void)
len
=
snprintf
(
NULL
,
0
,
"%s/../drive_c"
,
configdir
);
len
=
snprintf
(
NULL
,
0
,
"%s/../drive_c"
,
configdir
);
drive_c_dir
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
drive_c_dir
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
snprintf
(
drive_c_dir
,
len
,
"%s/../drive_c"
,
configdir
);
snprintf
(
drive_c_dir
,
len
,
"%s/../drive_c"
,
configdir
);
HeapFree
(
GetProcessHeap
(),
0
,
drive_c_dir
);
if
(
stat
(
drive_c_dir
,
&
buf
)
==
0
)
if
(
stat
(
drive_c_dir
,
&
buf
)
==
0
)
{
{
...
@@ -300,6 +299,7 @@ static void ensure_drive_c_is_mapped(void)
...
@@ -300,6 +299,7 @@ static void ensure_drive_c_is_mapped(void)
{
{
report_error
(
NO_DRIVE_C
);
report_error
(
NO_DRIVE_C
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
drive_c_dir
);
}
}
int
autodetect_drives
(
void
)
int
autodetect_drives
(
void
)
...
...
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