mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 04:22:41 +00:00
- fix hive for korean keyboard layout
Alexander Wurzinger <Lohnegrim At gmx DOT net> - Patch to fix the "Pos InitData failed"-Error in power options. - See issue #2469 for more details. svn path=/trunk/; revision=34040
This commit is contained in:
parent
3d5de429aa
commit
1334454750
2 changed files with 17 additions and 1 deletions
|
@ -565,7 +565,7 @@ HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","0000040f",0x00000000,"1"
|
|||
HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","00000410",0x00000000,"1"
|
||||
HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","00000810",0x00000000,"1"
|
||||
HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","00000411",0x00000000,""
|
||||
HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","00000412",0x00000000,""
|
||||
HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","00000412",0x00000000,"8"
|
||||
HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","00000413",0x00000000,"1"
|
||||
HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","00000813",0x00000000,"1"
|
||||
HKLM,"SYSTEM\CurrentControlSet\Control\NLS\Locale","00000414",0x00000000,"1"
|
||||
|
|
|
@ -437,6 +437,22 @@ NtPowerInformation(IN POWER_INFORMATION_LEVEL PowerInformationLevel,
|
|||
RtlZeroMemory(BatteryState, sizeof(SYSTEM_BATTERY_STATE));
|
||||
BatteryState->EstimatedTime = (ULONG)-1;
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
break;
|
||||
}
|
||||
case SystemPowerCapabilities:
|
||||
{
|
||||
PSYSTEM_POWER_CAPABILITIES PowerCapabilities = (PSYSTEM_POWER_CAPABILITIES)OutputBuffer;
|
||||
|
||||
if (InputBuffer != NULL)
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
if (OutputBufferLength < sizeof(SYSTEM_POWER_CAPABILITIES))
|
||||
return STATUS_BUFFER_TOO_SMALL;
|
||||
|
||||
/* Just zero the struct (and thus set BatteryState->BatteryPresent = FALSE) */
|
||||
RtlZeroMemory(PowerCapabilities, sizeof(SYSTEM_POWER_CAPABILITIES));
|
||||
//PowerCapabilities->SystemBatteriesPresent = 0;
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue