https://git.reactos.org/?p=reactos.git;a=commitdiff;h=951e52104a6548ab0f164…
commit 951e52104a6548ab0f164f1f2c1630bbae3646cc
Author: Victor Perevertkin <victor.perevertkin(a)reactos.org>
AuthorDate: Wed Jan 5 03:22:15 2022 +0300
Commit: Victor Perevertkin <victor.perevertkin(a)reactos.org>
CommitDate: Wed Jan 5 03:22:15 2022 +0300
[HDAUDBUS] Fix uninitialized variable usage
---
drivers/wdm/audio/hdaudbus/hdaudbus.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/wdm/audio/hdaudbus/hdaudbus.cpp
b/drivers/wdm/audio/hdaudbus/hdaudbus.cpp
index 96438b786b0..52e6cc3466b 100644
--- a/drivers/wdm/audio/hdaudbus/hdaudbus.cpp
+++ b/drivers/wdm/audio/hdaudbus/hdaudbus.cpp
@@ -156,6 +156,10 @@ HDA_PdoPnp(
Status = STATUS_INSUFFICIENT_RESOURCES;
}
}
+ else
+ {
+ Status = Irp->IoStatus.Status;
+ }
break;
case IRP_MN_QUERY_CAPABILITIES:
/* query capabilities */