From b625e9516d2c3d45c72f8b57b044a6d99144c980 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 7 Dec 2015 08:48:57 +0000 Subject: [PATCH] =?UTF-8?q?[NDIS]=20-=20Avoid=20using=20an=20out-of-scope?= =?UTF-8?q?=20local=20variable=20in=20NdisReadNetworkAddress.=20Patch=20by?= =?UTF-8?q?=20V=C3=ADctor=20Mart=C3=ADnez.=20CORE-10650=20#resolve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=70284 --- reactos/drivers/network/ndis/ndis/config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/drivers/network/ndis/ndis/config.c b/reactos/drivers/network/ndis/ndis/config.c index 59c69c37bee..2a0f8dfb532 100644 --- a/reactos/drivers/network/ndis/ndis/config.c +++ b/reactos/drivers/network/ndis/ndis/config.c @@ -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));