- Fix broken check
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 24 Aug 2009 02:54:53 +0000 (02:54 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 24 Aug 2009 02:54:53 +0000 (02:54 +0000)
- Enables Ks Studio to instantiate audio pins

svn path=/trunk/; revision=42900

reactos/dll/directx/ksuser/ksuser.c

index a20c312..76d79ac 100644 (file)
@@ -187,10 +187,7 @@ KsCreatePin(HANDLE FilterHandle,
     ULONG BufferSize = sizeof(KSPIN_CONNECT);
     PKSDATAFORMAT DataFormat = ((PKSDATAFORMAT) ( ((ULONG)Connect) + ((ULONG)sizeof(KSPIN_CONNECT)) ) );
 
     ULONG BufferSize = sizeof(KSPIN_CONNECT);
     PKSDATAFORMAT DataFormat = ((PKSDATAFORMAT) ( ((ULONG)Connect) + ((ULONG)sizeof(KSPIN_CONNECT)) ) );
 
-    if (DataFormat->Flags &  KSDATAFORMAT_ATTRIBUTES)
-    {
-        BufferSize += (ROUND_UP(DataFormat->FormatSize,sizeof(LONGLONG)) + DataFormat->FormatSize);
-    }
+    BufferSize += DataFormat->FormatSize;
 
     return KsiCreateObjectType(FilterHandle,
                                KSSTRING_Pin,
 
     return KsiCreateObjectType(FilterHandle,
                                KSSTRING_Pin,