[ros-diffs] [janderwald] 38429: - Acquire lock before deleting

janderwald at svn.reactos.org janderwald at svn.reactos.org
Sun Dec 28 18:19:19 CET 2008


Author: janderwald
Date: Sun Dec 28 11:19:18 2008
New Revision: 38429

URL: http://svn.reactos.org/svn/reactos?rev=38429&view=rev
Log:
- Acquire lock before deleting

Modified:
    trunk/reactos/drivers/ksfilter/ks/worker.c

Modified: trunk/reactos/drivers/ksfilter/ks/worker.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/worker.c?rev=38429&r1=38428&r2=38429&view=diff
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/worker.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/worker.c [iso-8859-1] Sun Dec 28 11:19:18 2008
@@ -62,13 +62,14 @@
     IN  PKSWORKER Worker)
 {
     KS_WORKER * KsWorker;
-    KIRQL OldIrql = 0; // hack!!! janderwald!!!
-    //ULONG bWait = FALSE;
+    KIRQL OldIrql;
 
     if (!Worker)
         return;
 
     KsWorker = (KS_WORKER *)Worker;
+
+    KeAcquireSpinLock(&KsWorker->Lock, &OldIrql);
 
     KsWorker->DeleteInProgress = TRUE;
 



More information about the Ros-diffs mailing list