Author: janderwald
Date: Fri Nov 6 18:00:20 2009
New Revision: 43988
URL:
http://svn.reactos.org/svn/reactos?rev=43988&view=rev
Log:
- Fix check
Modified:
trunk/reactos/dll/directx/dsound_new/capture.c
Modified: trunk/reactos/dll/directx/dsound_new/capture.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/dsound_new/cap…
==============================================================================
--- trunk/reactos/dll/directx/dsound_new/capture.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/dsound_new/capture.c [iso-8859-1] Fri Nov 6 18:00:20 2009
@@ -105,7 +105,7 @@
}
/* check buffer description */
- if ((lpcDSBufferDesc->dwSize != sizeof(DSBUFFERDESC) &&
lpcDSBufferDesc->dwSize != sizeof(DSBUFFERDESC1)) || lpcDSBufferDesc->dwReserved !=
0)
+ if ((lpcDSBufferDesc->dwSize != sizeof(DSCBUFFERDESC) &&
lpcDSBufferDesc->dwSize != sizeof(DSCBUFFERDESC1)) || lpcDSBufferDesc->dwReserved !=
0)
{
DPRINT("Invalid buffer description size %u expected %u or %u dwReserved
%u\n", lpcDSBufferDesc->dwSize, sizeof(DSBUFFERDESC1), sizeof(DSBUFFERDESC),
lpcDSBufferDesc->dwReserved);
return DSERR_INVALIDPARAM;