mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[KS]
- Fix a bug where a spinlock was acquired on not initialized local variable - Found by msvc svn path=/branches/cmake-bringup/; revision=50671
This commit is contained in:
parent
44366c9fd0
commit
d33174f9de
1 changed files with 3 additions and 3 deletions
|
@ -1156,12 +1156,12 @@ KspBusWorkerRoutine(
|
|||
BOOLEAN DoInvalidate = FALSE;
|
||||
KIRQL OldLevel;
|
||||
|
||||
/* acquire lock */
|
||||
KeAcquireSpinLock(&BusDeviceExtension->Lock, &OldLevel);
|
||||
|
||||
/* get device extension */
|
||||
BusDeviceExtension = (PBUS_ENUM_DEVICE_EXTENSION)Parameter;
|
||||
|
||||
/* acquire lock */
|
||||
KeAcquireSpinLock(&BusDeviceExtension->Lock, &OldLevel);
|
||||
|
||||
/* get current time */
|
||||
KeQuerySystemTime(&Time);
|
||||
|
||||
|
|
Loading…
Reference in a new issue