From d34cc750d815ad5ba7da972fb4eb36af321b79ba Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Mon, 11 Apr 2005 08:07:41 +0000 Subject: [PATCH] Fixed warning, uninitialized length. Sorry, I did this in a different way and missed one use of NewBufferLen. Not sure why I don't see the 'might be used uninitialized' warning. svn path=/trunk/; revision=14585 --- reactos/drivers/net/afd/afd/lock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/drivers/net/afd/afd/lock.c b/reactos/drivers/net/afd/afd/lock.c index 3cb8fd81348..08ebc314547 100644 --- a/reactos/drivers/net/afd/afd/lock.c +++ b/reactos/drivers/net/afd/afd/lock.c @@ -50,7 +50,6 @@ PAFD_WSABUF LockBuffers( PAFD_WSABUF Buf, UINT Count, UINT Size = sizeof(AFD_WSABUF) * (Count + Lock); PAFD_WSABUF NewBuf = ExAllocatePool( PagedPool, Size * 2 ); PMDL NewMdl; - INT NewBufferLen; AFD_DbgPrint(MID_TRACE,("Called\n")); @@ -61,7 +60,7 @@ PAFD_WSABUF LockBuffers( PAFD_WSABUF Buf, UINT Count, RtlCopyMemory( NewBuf, Buf, sizeof(AFD_WSABUF) * Count ); if( LockAddress ) { NewBuf[Count].buf = AddressBuf; - NewBuf[Count].len = NewBufferLen; + NewBuf[Count].len = *AddressLen; Count++; NewBuf[Count].buf = (PVOID)AddressLen; NewBuf[Count].len = sizeof(*AddressLen);