[NDIS]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 7 Dec 2015 08:48:57 +0000 (08:48 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 7 Dec 2015 08:48:57 +0000 (08:48 +0000)
- Avoid using an out-of-scope local variable in NdisReadNetworkAddress. Patch by Víctor Martínez.
CORE-10650 #resolve

svn path=/trunk/; revision=70284

reactos/drivers/network/ndis/ndis/config.c

index 59c69c3..2a0f8df 100644 (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));