Author: pschweitzer
Date: Sat Jun 10 20:46:28 2017
New Revision: 74987
URL:
http://svn.reactos.org/svn/reactos?rev=74987&view=rev
Log:
[RDBSS]
Fix reading parameters from registry
CID 1411973
Modified:
trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c
Modified: trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/drivers/rdbsslib/r…
==============================================================================
--- trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/drivers/rdbsslib/rdbss.c [iso-8859-1] Sat Jun 10 20:46:28 2017
@@ -5406,14 +5406,14 @@
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 @@
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);