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
c1920412
Commit
c1920412
authored
Jun 03, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
Jun 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmdevapi/tests: Fix wrong buffer unit and memory leaks.
parent
d49b23d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
render.c
dlls/mmdevapi/tests/render.c
+6
-2
No files found.
dlls/mmdevapi/tests/render.c
View file @
c1920412
...
...
@@ -371,6 +371,8 @@ static void test_references(void)
0
,
pwfx
,
NULL
);
ok
(
hr
==
S_OK
,
"Initialize failed: %08x
\n
"
,
hr
);
CoTaskMemFree
(
pwfx
);
hr
=
IAudioClient_GetService
(
ac
,
&
IID_IAudioStreamVolume
,
(
void
**
)
&
asv
);
ok
(
hr
==
S_OK
,
"GetService failed: %08x
\n
"
,
hr
);
...
...
@@ -467,7 +469,7 @@ static void test_padding(void)
hr
=
IAudioClient_GetService
(
ac
,
&
IID_IAudioRenderClient
,
(
void
**
)
&
arc
);
ok
(
hr
==
S_OK
,
"GetService failed: %08x
\n
"
,
hr
);
psize
=
(
defp
/
10000000
.)
*
pwfx
->
nSamplesPerSec
*
pwfx
->
nBlockAlign
;
psize
=
(
defp
/
10000000
.)
*
pwfx
->
nSamplesPerSec
*
10
;
written
=
0
;
hr
=
IAudioClient_GetCurrentPadding
(
ac
,
&
pad
);
...
...
@@ -487,7 +489,7 @@ static void test_padding(void)
ok
(
hr
==
S_OK
,
"GetCurrentPadding failed: %08x
\n
"
,
hr
);
ok
(
pad
==
written
,
"GetCurrentPadding returned %u, should be %u
\n
"
,
pad
,
written
);
psize
=
(
minp
/
10000000
.)
*
pwfx
->
nSamplesPerSec
*
pwfx
->
nBlockAlign
;
psize
=
(
minp
/
10000000
.)
*
pwfx
->
nSamplesPerSec
*
10
;
hr
=
IAudioRenderClient_GetBuffer
(
arc
,
psize
,
&
buf
);
ok
(
hr
==
S_OK
,
"GetBuffer failed: %08x
\n
"
,
hr
);
...
...
@@ -645,6 +647,8 @@ static void test_clock(void)
ok
(
hr
==
S_OK
,
"GetPosition failed: %08x
\n
"
,
hr
);
ok
(
pos
>=
last
,
"Position should have been further along...
\n
"
);
CoTaskMemFree
(
pwfx
);
IAudioClock_Release
(
acl
);
IAudioClient_Release
(
ac
);
}
...
...
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