Author: janderwald
Date: Sat Feb 12 18:54:43 2011
New Revision: 50672
URL:
http://svn.reactos.org/svn/reactos?rev=50672&view=rev
Log:
- Fix a bug where a spinlock was acquired on not initialized local variable
Modified:
branches/audio-bringup/drivers/ksfilter/ks/swenum.c
Modified: branches/audio-bringup/drivers/ksfilter/ks/swenum.c
URL:
http://svn.reactos.org/svn/reactos/branches/audio-bringup/drivers/ksfilter/…
==============================================================================
--- branches/audio-bringup/drivers/ksfilter/ks/swenum.c [iso-8859-1] (original)
+++ branches/audio-bringup/drivers/ksfilter/ks/swenum.c [iso-8859-1] Sat Feb 12 18:54:43
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);