mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
check NDIS ParameterType (fix by Crashfourit)
svn path=/trunk/; revision=21002
This commit is contained in:
parent
b8265505ae
commit
96249aac20
1 changed files with 10 additions and 1 deletions
|
@ -493,7 +493,16 @@ NdisReadConfiguration(
|
|||
str.Buffer = (PWCHAR)KeyInformation->Data;
|
||||
|
||||
(*ParameterValue)->ParameterType = ParameterType;
|
||||
*Status = RtlUnicodeStringToInteger(&str, 16, &(*ParameterValue)->ParameterData.IntegerData);
|
||||
|
||||
/*
|
||||
If ParameterType is NdisParameterInteger then the base of str is decimal.
|
||||
If ParameterType is NdisParameterHexInteger then the base of str is hexadecimal.
|
||||
*/
|
||||
if (ParameterType == NdisParameterInteger)
|
||||
*Status = RtlUnicodeStringToInteger(&str, 10, &(*ParameterValue)->ParameterData.IntegerData);
|
||||
else if (ParameterType == NdisParameterHexInteger)
|
||||
*Status = RtlUnicodeStringToInteger(&str, 16, &(*ParameterValue)->ParameterData.IntegerData);
|
||||
|
||||
|
||||
ExFreePool(KeyInformation);
|
||||
|
||||
|
|
Loading…
Reference in a new issue