Module: wine
Branch: master
Commit: 4f06fd1490a759824ee27456df07b8103d7d72a3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4f06fd1490a759824ee27456d…
Author: Michael Stefaniuc <mstefani(a)redhat.de>
Date: Tue Aug 9 22:28:37 2016 +0200
mmdevapi: Another use case for todo_wine_if().
Signed-off-by: Michael Stefaniuc <mstefani(a)redhat.de>
Signed-off-by: Andrew Eikum <aeikum(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/mmdevapi/tests/capture.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/dlls/mmdevapi/tests/capture.c b/dlls/mmdevapi/tests/capture.c
index 749272a..99da296 100644
--- a/dlls/mmdevapi/tests/capture.c
+++ b/dlls/mmdevapi/tests/capture.c
@@ -309,19 +309,13 @@ static void test_capture(IAudioClient *ac, HANDLE handle, WAVEFORMATEX *wfx)
if(hr == S_OK){
/* The discontinuity is reported here, but is this an old or new packet? */
- if(!(flags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY)){
+ todo_wine_if(!(flags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY)) {
/* FIXME: Some drivers fail */
- todo_wine ok(flags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY, "expect DISCONTINUITY %x\n", flags);
- todo_wine ok(pos == sum + frames, "Position %u gap %d\n",
- (UINT)pos, (UINT)pos - sum);
- }else{
ok(flags & AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY, "expect DISCONTINUITY %x\n", flags);
-
/* Native's position is one period further than what we read.
* Perhaps that's precisely the meaning of DATA_DISCONTINUITY:
* signal when the position jump left a gap. */
- ok(pos == sum + frames, "Position %u gap %d\n",
- (UINT)pos, (UINT)pos - sum);
+ ok(pos == sum + frames, "Position %u gap %d\n", (UINT)pos, (UINT)pos - sum);
}
ok(pad == next, "GCP %u vs. BufferSize %u\n", (UINT32)pad, next);