mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- Don't crash if we are already freed
- Some code frees the buffers right after an operation fails which is fine svn path=/branches/aicom-network-fixes/; revision=35297
This commit is contained in:
@@ -112,6 +112,8 @@ VOID UnlockBuffers( PAFD_WSABUF Buf, UINT Count, BOOL Address ) {
|
||||
PAFD_MAPBUF Map = (PAFD_MAPBUF)(Buf + Count + Lock);
|
||||
UINT i;
|
||||
|
||||
if( !Buf ) return;
|
||||
|
||||
for( i = 0; i < Count + Lock; i++ ) {
|
||||
if( Map[i].Mdl ) {
|
||||
MmUnlockPages( Map[i].Mdl );
|
||||
|
||||
Reference in New Issue
Block a user