- Avoid using an out-of-scope local variable in NdisReadNetworkAddress. Patch by Víctor Martínez.
CORE-10650 #resolve

svn path=/trunk/; revision=70284
This commit is contained in:
Thomas Faber 2015-12-07 08:48:57 +00:00
parent 1acc2401b3
commit b625e9516d

View file

@ -761,6 +761,7 @@ NdisReadNetworkAddress(
NDIS_STRING Keyword;
UINT *IntArray = 0;
UINT i,j = 0;
WCHAR Buff[11];
NDIS_STRING str;
NdisInitUnicodeString(&Keyword, L"NetworkAddress");
@ -774,8 +775,6 @@ NdisReadNetworkAddress(
if (ParameterValue->ParameterType == NdisParameterInteger)
{
WCHAR Buff[11];
NDIS_DbgPrint(MAX_TRACE, ("Read integer data %lx\n",
ParameterValue->ParameterData.IntegerData));