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
da1f67a3
Commit
da1f67a3
authored
Jun 26, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msacm32: Replace malloc/free with HeapAlloc/HeapFree.
parent
98e30069
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
msacm.c
dlls/msacm32/tests/msacm.c
+2
-3
No files found.
dlls/msacm32/tests/msacm.c
View file @
da1f67a3
...
...
@@ -301,9 +301,8 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
if
(
dwSize
<
sizeof
(
WAVEFORMATEX
))
dwSize
=
sizeof
(
WAVEFORMATEX
);
pwfx
=
(
WAVEFORMATEX
*
)
malloc
(
dwSize
);
pwfx
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
dwSize
);
ZeroMemory
(
pwfx
,
dwSize
);
pwfx
->
cbSize
=
LOWORD
(
dwSize
)
-
sizeof
(
WAVEFORMATEX
);
pwfx
->
wFormatTag
=
WAVE_FORMAT_UNKNOWN
;
...
...
@@ -352,7 +351,7 @@ static BOOL CALLBACK DriverEnumProc(HACMDRIVERID hadid,
"acmFormatTagEnum(): rc = %08x, should be %08x
\n
"
,
rc
,
MMSYSERR_NOERROR
);
free
(
pwfx
);
HeapFree
(
GetProcessHeap
(),
0
,
pwfx
);
/* try invalid handle */
rc
=
acmDriverClose
((
HACMDRIVER
)
1
,
0
);
...
...
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