[ros-diffs] [arty] 14585: Fixed warning,
uninitialized length. Sorry, I did this in a different way
arty at svn.reactos.com
arty at svn.reactos.com
Mon Apr 11 10:07:43 CEST 2005
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.
Modified: trunk/reactos/drivers/net/afd/afd/lock.c
_____
Modified: trunk/reactos/drivers/net/afd/afd/lock.c
--- trunk/reactos/drivers/net/afd/afd/lock.c 2005-04-11 06:03:20 UTC
(rev 14584)
+++ trunk/reactos/drivers/net/afd/afd/lock.c 2005-04-11 08:07:41 UTC
(rev 14585)
@@ -50,7 +50,6 @@
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 @@
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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050411/ccb23cb8/attachment.html
More information about the Ros-diffs
mailing list