mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user