Author: janderwald
Date: Sat Feb 12 18:55:52 2011
New Revision: 50673
URL:
http://svn.reactos.org/svn/reactos?rev=50673&view=rev
Log:
- Fix a bug where a spinlock was acquired on not initialized local variable
Modified:
trunk/reactos/drivers/ksfilter/ks/swenum.c
Modified: trunk/reactos/drivers/ksfilter/ks/swenum.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/swenum…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/swenum.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/swenum.c [iso-8859-1] Sat Feb 12 18:55:52 2011
@@ -1156,11 +1156,11 @@
BOOLEAN DoInvalidate = FALSE;
KIRQL OldLevel;
+ /* get device extension */
+ BusDeviceExtension = (PBUS_ENUM_DEVICE_EXTENSION)Parameter;
+
/* acquire lock */
KeAcquireSpinLock(&BusDeviceExtension->Lock, &OldLevel);
-
- /* get device extension */
- BusDeviceExtension = (PBUS_ENUM_DEVICE_EXTENSION)Parameter;
/* get current time */
KeQuerySystemTime(&Time);