- Fix check
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 6 Nov 2009 17:00:20 +0000 (17:00 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Fri, 6 Nov 2009 17:00:20 +0000 (17:00 +0000)
svn path=/trunk/; revision=43988

reactos/dll/directx/dsound_new/capture.c

index 3844fca..62d93c5 100644 (file)
@@ -105,7 +105,7 @@ CDirectSoundCapture_fnCreateCaptureBuffer(
     }
 
     /* 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;