- Fix a critical bug in the counted worker implementation
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 5 Oct 2009 19:15:04 +0000 (19:15 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Mon, 5 Oct 2009 19:15:04 +0000 (19:15 +0000)
svn path=/trunk/; revision=43306

reactos/drivers/ksfilter/ks/worker.c

index 2f4ce8d..639f9cd 100644 (file)
@@ -179,7 +179,7 @@ KsRegisterCountedWorker(
     if (NT_SUCCESS(Status))
     {
         /* get ks worker implementation */
-        KsWorker = (PKSIWORKER)Worker;
+        KsWorker = *(PKSIWORKER*)Worker;
         /* store counted work item */
         KsWorker->CountedWorkItem = CountedWorkItem;
     }