From 8bd2cfb3ab62591ea0359c1df865df5a71dfe640 Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Tue, 3 Nov 2009 22:30:36 +0000 Subject: [PATCH] - Fix checking of flags found by Ged - Remove unsupported DSBLOCK_FROMWRITECURSOR svn path=/trunk/; revision=43942 --- reactos/dll/directx/dsound_new/capturebuffer.c | 5 ----- reactos/dll/directx/dsound_new/secondary.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/reactos/dll/directx/dsound_new/capturebuffer.c b/reactos/dll/directx/dsound_new/capturebuffer.c index ed6591ef719..0c9ab6bcb03 100644 --- a/reactos/dll/directx/dsound_new/capturebuffer.c +++ b/reactos/dll/directx/dsound_new/capturebuffer.c @@ -298,11 +298,6 @@ IDirectSoundCaptureBufferImpl_Lock( return DS_OK; } - else if (dwFlags & DSBLOCK_FROMWRITECURSOR) - { - UNIMPLEMENTED - return DSERR_UNSUPPORTED; - } else { ASSERT(dwOffset < This->BufferSize); diff --git a/reactos/dll/directx/dsound_new/secondary.c b/reactos/dll/directx/dsound_new/secondary.c index 47a2ad772b1..08c51605244 100644 --- a/reactos/dll/directx/dsound_new/secondary.c +++ b/reactos/dll/directx/dsound_new/secondary.c @@ -255,7 +255,7 @@ SecondaryDirectSoundBuffer8Impl_fnLock( return DS_OK; } - else if (dwFlags & DSBLOCK_FROMWRITECURSOR) + else if (dwFlags == DSBLOCK_FROMWRITECURSOR) { UNIMPLEMENTED return DSERR_UNSUPPORTED; -- 2.17.1