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
a21c489f
Commit
a21c489f
authored
Jan 01, 2014
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsystem.dll16: Free the correct pointer (Coverity).
parent
ba8caceb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mci16.c
dlls/mmsystem.dll16/mci16.c
+3
-1
No files found.
dlls/mmsystem.dll16/mci16.c
View file @
a21c489f
...
...
@@ -323,12 +323,14 @@ static MMSYSTEM_MapType MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l
return
MMSYSTEM_MAP_OKMEM
;
case
MCI_SYSINFO
:
{
MCI_SYSINFO_PARMSW
*
origmsip32w
;
MCI_SYSINFO_PARMSW
*
msip32w
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
MCI_OPEN_PARMS16
*
)
+
sizeof
(
MCI_SYSINFO_PARMSW
));
MCI_SYSINFO_PARMS16
*
msip16
=
MapSL
(
*
lParam
);
if
(
!
msip32w
)
return
MMSYSTEM_MAP_NOMEM
;
origmsip32w
=
msip32w
;
*
(
MCI_SYSINFO_PARMS16
**
)
msip32w
=
msip16
;
msip32w
=
(
MCI_SYSINFO_PARMSW
*
)((
char
*
)
msip32w
+
sizeof
(
MCI_OPEN_PARMS16
*
));
msip32w
->
dwCallback
=
msip16
->
dwCallback
;
...
...
@@ -337,7 +339,7 @@ static MMSYSTEM_MapType MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l
msip16
->
dwRetSize
*
sizeof
(
WCHAR
));
if
(
!
msip32w
->
lpstrReturn
)
{
HeapFree
(
GetProcessHeap
(),
0
,
msip32w
);
HeapFree
(
GetProcessHeap
(),
0
,
orig
msip32w
);
return
MMSYSTEM_MAP_NOMEM
;
}
msip32w
->
dwRetSize
=
(
dwFlags
&
MCI_SYSINFO_QUANTITY
)
?
sizeof
(
DWORD
)
:
msip16
->
dwRetSize
;
...
...
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