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…
==============================================================================
--- 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;