[VBEMP] Return NO_ERROR in VBESetPowerState (#9350)

Fix incorrect status code returned by VBESetPowerState()
in the VBE miniport driver.

- VBESetPowerState() returned `VBE_SUCCESS` (`0x4F`, raw VESA BIOS AL
  success code) instead of `NO_ERROR` on success, so callers checking for
  `NO_ERROR` would treat every successful DPMS power-state change
  as a failure. Change it to `NO_ERROR`.
- Change annotations to SAL2 in the source and header.
This commit is contained in:
Alex Mendoza
2026-07-28 22:52:45 +03:00
committed by GitHub
parent 4fecc908e7
commit 7658029392
2 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -650,9 +650,9 @@ VBEGetPowerState(
VP_STATUS NTAPI
VBESetPowerState(
PVOID HwDeviceExtension,
ULONG HwId,
PVIDEO_POWER_MANAGEMENT VideoPowerControl)
_In_ PVOID HwDeviceExtension,
_In_ ULONG HwId,
_In_ PVIDEO_POWER_MANAGEMENT VideoPowerControl)
{
INT10_BIOS_ARGUMENTS BiosRegisters;
PVBE_DEVICE_EXTENSION VBEDeviceExtension =
@@ -692,7 +692,7 @@ VBESetPowerState(
if (VBE_GETRETURNCODE(BiosRegisters.Eax) != VBE_SUCCESS)
return ERROR_INVALID_FUNCTION;
return VBE_SUCCESS;
return NO_ERROR;
}
/*
+3 -3
View File
@@ -252,9 +252,9 @@ VBEGetPowerState(
VP_STATUS NTAPI
VBESetPowerState(
PVOID HwDeviceExtension,
ULONG HwId,
PVIDEO_POWER_MANAGEMENT VideoPowerControl);
_In_ PVOID HwDeviceExtension,
_In_ ULONG HwId,
_In_ PVIDEO_POWER_MANAGEMENT VideoPowerControl);
BOOLEAN FASTCALL
VBESetCurrentMode(