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
8b55b76d
Commit
8b55b76d
authored
Mar 15, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Mar 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in error path.
parent
cf4d0d97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
mci.c
dlls/winmm/mci.c
+5
-1
wavemap.c
dlls/winmm/wavemap/wavemap.c
+1
-0
No files found.
dlls/winmm/mci.c
View file @
8b55b76d
...
...
@@ -1458,7 +1458,11 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrRet,
if
(
lpstrRet
)
{
lpwstrRet
=
HeapAlloc
(
GetProcessHeap
(),
0
,
uRetLen
*
sizeof
(
WCHAR
));
if
(
!
lpwstrRet
)
return
MCIERR_OUT_OF_MEMORY
;
if
(
!
lpwstrRet
)
{
WARN
(
"no memory
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
lpwstrCommand
);
return
MCIERR_OUT_OF_MEMORY
;
}
}
ret
=
mciSendStringW
(
lpwstrCommand
,
lpwstrRet
,
uRetLen
,
hwndCallback
);
if
(
lpwstrRet
)
...
...
dlls/winmm/wavemap/wavemap.c
View file @
8b55b76d
...
...
@@ -166,6 +166,7 @@ static DWORD wodOpen(LPDWORD lpdwUser, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
if
(
dwFlags
&
WAVE_MAPPED
)
{
if
(
lpDesc
->
uMappedDeviceID
>=
ndhi
)
{
WARN
(
"invalid parameter: dwFlags WAVE_MAPPED
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
wom
);
return
MMSYSERR_INVALPARAM
;
}
ndlo
=
lpDesc
->
uMappedDeviceID
;
...
...
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