projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b732baa
)
- Use NewBuf instead of Data so we actually use the buffer we allocate
author
Cameron Gutman
<aicommander@gmail.com>
Sat, 6 Sep 2008 20:42:10 +0000
(20:42 +0000)
committer
Cameron Gutman
<aicommander@gmail.com>
Sat, 6 Sep 2008 20:42:10 +0000
(20:42 +0000)
svn path=/branches/aicom-network-fixes/; revision=36003
drivers/network/tcpip/tcpip/buffer.c
patch
|
blob
|
history
diff --git
a/drivers/network/tcpip/tcpip/buffer.c
b/drivers/network/tcpip/tcpip/buffer.c
index
dd3a245
..
dd5021d
100644
(file)
--- a/
drivers/network/tcpip/tcpip/buffer.c
+++ b/
drivers/network/tcpip/tcpip/buffer.c
@@
-323,7
+323,7
@@
NDIS_STATUS PrependPacket( PNDIS_PACKET Packet, PCHAR Data, UINT Length,
RtlCopyMemory( NewBuf, Data, Length );
} else NewBuf = Data;
- NdisAllocateBuffer( &Status, &Buffer, GlobalBufferPool,
Data
, Length );
+ NdisAllocateBuffer( &Status, &Buffer, GlobalBufferPool,
NewBuf
, Length );
if( Status != NDIS_STATUS_SUCCESS ) return Status;
NdisChainBufferAtFront( Packet, Buffer );