summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauri Thirumandas <[email protected]>2025-07-31 13:45:16 -0700
committerGitHub <[email protected]>2025-07-31 13:45:16 -0700
commit02af7684267a694a0a2625812e0d30bab4e87974 (patch)
treeea0911ed135f2bfbea9212ec8d4a88404e177f3c
parent494ac105f8a4165ae4319246d89217ea5eac8b81 (diff)
Fixing C5286 in serial/serial /ioctl.c
Co-authored-by: Gauri Thirumandas <[email protected]>
-rw-r--r--serial/serial/ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/serial/ioctl.c b/serial/serial/ioctl.c
index 192f3955..c571334b 100644
--- a/serial/serial/ioctl.c
+++ b/serial/serial/ioctl.c
@@ -2032,7 +2032,7 @@ Return Value:
//
// Override the default settings from allow user control to do not allow.
//
- wakeSettings.UserControlOfWakeSettings = IdleDoNotAllowUserControl;
+ wakeSettings.UserControlOfWakeSettings = WakeDoNotAllowUserControl;
status = WdfDeviceAssignSxWakeSettings(pDevExt->WdfDevice, &wakeSettings);
if (!NT_SUCCESS(status)) {
SerialDbgPrintEx(TRACE_LEVEL_ERROR, DBG_PNP, "WdfDeviceAssignSxWakeSettings failed %x \n", status);
@@ -2050,7 +2050,7 @@ Return Value:
// Override the default settings.
//
wakeSettings.Enabled = WdfFalse; // Disables wait-wake
- wakeSettings.UserControlOfWakeSettings = IdleDoNotAllowUserControl;
+ wakeSettings.UserControlOfWakeSettings = WakeDoNotAllowUserControl;
status = WdfDeviceAssignSxWakeSettings(pDevExt->WdfDevice, &wakeSettings);
if (!NT_SUCCESS(status)) {
SerialDbgPrintEx(TRACE_LEVEL_ERROR, DBG_PNP, "WdfDeviceAssignSxWakeSettings failed %x \n", status);