Author: cwittich
Date: Sun Mar 1 10:15:50 2015
New Revision: 66513
URL:
http://svn.reactos.org/svn/reactos?rev=66513&view=rev
Log:
[NDIS]
support REG_DWORD in NdisReadConfiguration
CORE-8046
Modified:
trunk/reactos/drivers/network/ndis/ndis/config.c
Modified: trunk/reactos/drivers/network/ndis/ndis/config.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/config.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/config.c [iso-8859-1] Sun Mar 1 10:15:50
2015
@@ -645,6 +645,13 @@
(*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;