mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 20:02:55 +00:00
[SACDRV] Fix uninitialized variable usage.
Powered by clang-cl.
This commit is contained in:
parent
4eb45209ea
commit
4be3bc682d
|
@ -153,8 +153,11 @@ FreeDeviceData(IN PDEVICE_OBJECT DeviceObject)
|
|||
|
||||
/* Get the device extension and see how far we had gotten */
|
||||
DeviceExtension = (PSAC_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||
if ((GlobalDataInitialized) && (DeviceExtension->Initialized))
|
||||
if (!(GlobalDataInitialized) || !(DeviceExtension->Initialized))
|
||||
{
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
/* Attempt to rundown while holding the lock */
|
||||
KeAcquireSpinLock(&DeviceExtension->Lock, &OldIrql);
|
||||
while (DeviceExtension->RundownInProgress)
|
||||
|
@ -174,7 +177,6 @@ FreeDeviceData(IN PDEVICE_OBJECT DeviceObject)
|
|||
/* Re-acquire the lock and check if rundown is done */
|
||||
KeAcquireSpinLock(&DeviceExtension->Lock, &OldIrql);
|
||||
}
|
||||
}
|
||||
|
||||
/* Now set the rundown flag while we cancel the timer */
|
||||
DeviceExtension->RundownInProgress = TRUE;
|
||||
|
@ -205,6 +207,7 @@ FreeDeviceData(IN PDEVICE_OBJECT DeviceObject)
|
|||
KeAcquireSpinLock(&DeviceExtension->Lock, &OldIrql);
|
||||
DeviceExtension->Initialized = FALSE;
|
||||
KeReleaseSpinLock(&DeviceExtension->Lock, OldIrql);
|
||||
Exit:
|
||||
SAC_DBG(SAC_DBG_ENTRY_EXIT, "SAC FreeDeviceData: Exiting.\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -74,6 +74,7 @@
|
|||
{ \
|
||||
if (!VerifyEventWaitable(Attributes->x, &Object, &WaitObject)) \
|
||||
{ \
|
||||
Status = STATUS_INVALID_HANDLE; \
|
||||
goto FailChannel; \
|
||||
} \
|
||||
Channel->x = Attributes->x; \
|
||||
|
|
Loading…
Reference in a new issue