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
3327c5f6
Commit
3327c5f6
authored
Jan 11, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Replace some '#if 0's with 'if (0)'s.
parent
42d25ef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
capture.c
dlls/dsound/tests/capture.c
+8
-4
No files found.
dlls/dsound/tests/capture.c
View file @
3327c5f6
...
...
@@ -645,7 +645,9 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
}
/* try a non PCM format */
#if 0
if
(
0
)
{
/* FIXME: Why is this commented out? */
init_format
(
&
wfx
,
WAVE_FORMAT_MULAW
,
8000
,
8
,
1
);
ZeroMemory
(
&
bufdesc
,
sizeof
(
bufdesc
));
bufdesc
.
dwSize
=
sizeof
(
bufdesc
);
...
...
@@ -664,10 +666,12 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
ok
(
ref
==
0
,
"IDirectSoundCaptureBuffer_Release() has %d references, "
"should have 0
\n
"
,
ref
);
}
#endif
}
/* Try an invalid format to test error handling */
#if 0
if
(
0
)
{
/* FIXME: Remove this test altogether? */
init_format
(
&
wfx
,
WAVE_FORMAT_PCM
,
2000000
,
16
,
2
);
ZeroMemory
(
&
bufdesc
,
sizeof
(
bufdesc
));
bufdesc
.
dwSize
=
sizeof
(
bufdesc
);
...
...
@@ -680,7 +684,7 @@ static BOOL WINAPI dscenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
rc
=
IDirectSoundCapture_CreateCaptureBuffer
(
dsco
,
&
bufdesc
,
&
dscbo
,
NULL
);
ok
(
rc
!=
DS_OK
,
"IDirectSoundCapture_CreateCaptureBuffer() should have failed "
"at 2 MHz %s
\n
"
,
DXGetErrorString8
(
rc
));
#endif
}
EXIT:
if
(
dsco
!=
NULL
)
{
...
...
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