mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:11:44 +00:00
[RDBSS]
Fix reading parameters from registry CID 1411973 svn path=/trunk/; revision=74987
This commit is contained in:
parent
be0666cf16
commit
fc8affc217
1 changed files with 3 additions and 3 deletions
|
@ -5406,14 +5406,14 @@ RxReadRegistryParameters(
|
|||
Status = ZwQueryValueKey(KeyHandle, &ParamName, KeyValuePartialInformation, PartialInfo, sizeof(Buffer), &ResultLength);
|
||||
if (NT_SUCCESS(Status) && PartialInfo->Type == REG_DWORD)
|
||||
{
|
||||
DisableByteRangeLockingOnReadOnlyFiles = ((ULONG)PartialInfo->Data != 0);
|
||||
DisableByteRangeLockingOnReadOnlyFiles = (*(PULONG)PartialInfo->Data != 0);
|
||||
}
|
||||
|
||||
RtlInitUnicodeString(&ParamName, L"ReadAheadGranularity");
|
||||
Status = ZwQueryValueKey(KeyHandle, &ParamName, KeyValuePartialInformation, PartialInfo, sizeof(Buffer), &ResultLength);
|
||||
if (NT_SUCCESS(Status) && PartialInfo->Type == REG_DWORD)
|
||||
{
|
||||
ULONG Granularity = (ULONG)PartialInfo->Data;
|
||||
ULONG Granularity = *(PULONG)PartialInfo->Data;
|
||||
|
||||
if (Granularity > 16)
|
||||
{
|
||||
|
@ -5427,7 +5427,7 @@ RxReadRegistryParameters(
|
|||
Status = ZwQueryValueKey(KeyHandle, &ParamName, KeyValuePartialInformation, PartialInfo, sizeof(Buffer), &ResultLength);
|
||||
if (NT_SUCCESS(Status) && PartialInfo->Type == REG_DWORD)
|
||||
{
|
||||
DisableFlushOnCleanup = ((ULONG)PartialInfo->Data != 0);
|
||||
DisableFlushOnCleanup = (*(PULONG)PartialInfo->Data != 0);
|
||||
}
|
||||
|
||||
ZwClose(KeyHandle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue