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
63afcfeb
Commit
63afcfeb
authored
Jan 09, 2005
by
Mike Hearn
Committed by
Alexandre Julliard
Jan 09, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a memory management bug in apply_drive_changes to stop winecfg
deleting all the drive definitions in some cases.
parent
b889e29e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
drive.c
programs/winecfg/drive.c
+9
-6
No files found.
programs/winecfg/drive.c
View file @
63afcfeb
...
...
@@ -180,6 +180,15 @@ void load_drives()
{
drives
[
i
].
letter
=
'A'
+
i
;
drives
[
i
].
in_use
=
FALSE
;
HeapFree
(
GetProcessHeap
(),
0
,
drives
[
i
].
unixpath
);
drives
[
i
].
unixpath
=
NULL
;
HeapFree
(
GetProcessHeap
(),
0
,
drives
[
i
].
label
);
drives
[
i
].
label
=
NULL
;
HeapFree
(
GetProcessHeap
(),
0
,
drives
[
i
].
serial
);
drives
[
i
].
serial
=
NULL
;
}
/* work backwards through the result of GetLogicalDriveStrings */
...
...
@@ -473,11 +482,5 @@ void apply_drive_changes()
WINE_TRACE
(
" CreateFile() error with file '%s'
\n
"
,
filename
);
}
}
/* if this drive is in use we should free it up */
if
(
drives
[
i
].
in_use
)
{
delete_drive
(
&
drives
[
i
]);
/* free up the string memory */
}
}
}
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