[PSDK]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 18 Feb 2017 09:30:59 +0000 (09:30 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 18 Feb 2017 09:30:59 +0000 (09:30 +0000)
- Fix KsFilterFactoryGetDevice
CORE-11794

svn path=/trunk/; revision=73824

reactos/sdk/include/psdk/ks.h

index ac9407f..38aee9e 100644 (file)
@@ -5064,10 +5064,20 @@ KsFilterCreatePinFactory(
 
 _IRQL_requires_max_(PASSIVE_LEVEL)
 KSDDKAPI
+PKSDEVICE
+NTAPI
+KsGetDevice(
+  _In_ PVOID Object);
+
+_IRQL_requires_max_(PASSIVE_LEVEL)
+static
 __inline
 PKSDEVICE
 KsFilterFactoryGetDevice(
-  _In_ PKSFILTERFACTORY FilterFactory);
+  _In_ PKSFILTERFACTORY FilterFactory)
+{
+    return KsGetDevice((PVOID)FilterFactory);
+}
 
 /* etc. */
 #endif /* avstream */