support REG_DWORD in NdisReadConfiguration
CORE-8046
  

svn path=/trunk/; revision=66513
This commit is contained in:
Christoph von Wittich 2015-03-01 10:15:50 +00:00
parent 23eb1ea1e7
commit d607b14920

View file

@ -645,6 +645,13 @@ NdisReadConfiguration(
(*ParameterValue)->ParameterData.StringData.Buffer = Buffer;
(*ParameterValue)->ParameterData.StringData.Length = KeyInformation->DataLength;
}
else if (KeyInformation->Type == REG_DWORD)
{
ASSERT(KeyInformation->DataLength == sizeof(ULONG));
NDIS_DbgPrint(MAX_TRACE, ("NdisParameterInteger\n"));
(*ParameterValue)->ParameterType = NdisParameterInteger;
(*ParameterValue)->ParameterData.IntegerData = * (ULONG *) &KeyInformation->Data[0];
}
else if (KeyInformation->Type == REG_SZ)
{
UNICODE_STRING str;